1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-17 16:43:24 +00:00

AddressSanitizer reported a few buffer overflows (false positives)

This commit is contained in:
Gerhard Rieger 2017-01-06 17:56:30 +01:00
parent 40d9352599
commit e25ba90e21
4 changed files with 15 additions and 8 deletions

View file

@ -90,9 +90,9 @@ static int xioopen_gopen(int argc, const char *argv[], struct opt *opts, int xio
return result;
#ifdef I_PUSH
if (S_ISCHR(st_mode)) {
Ioctl(result, I_PUSH, "ptem");
Ioctl(result, I_PUSH, "ldterm");
Ioctl(result, I_PUSH, "ttcompat");
Ioctl(result, I_PUSH, "ptem\0\0\0"); /* pad string length ... */
Ioctl(result, I_PUSH, "ldterm\0"); /* ... to requirements of ... */
Ioctl(result, I_PUSH, "ttcompat"); /* ... AdressSanitizer */
}
#endif
fd->stream.fd = result;