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:
parent
40d9352599
commit
e25ba90e21
4 changed files with 15 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue