diff options
author | Micael Karlberg <[email protected]> | 2018-10-16 15:53:37 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-10-16 15:53:37 +0200 |
commit | 043624804888dc021a75b01c0a3d8c1c0a1fde23 (patch) | |
tree | d143e2561adf5e87335329565ad05026efb15dbd /erts/emulator/nifs/common/socket_util.c | |
parent | f2481d58a2fb64b8f3c7cbb26e09cb17c04726e0 (diff) | |
download | otp-043624804888dc021a75b01c0a3d8c1c0a1fde23.tar.gz otp-043624804888dc021a75b01c0a3d8c1c0a1fde23.tar.bz2 otp-043624804888dc021a75b01c0a3d8c1c0a1fde23.zip |
[socket-nif] Recv handling of closing sockets
Fixed more issues regarding closing sockets. Specifically
with respect to recv calls.
Also, added demonitor for all *current* processes.
Also fixed a buffer overflow problem when writing an
warning message (the timestamp buffer was not large
enough).
OTP-14831
Diffstat (limited to 'erts/emulator/nifs/common/socket_util.c')
-rw-r--r-- | erts/emulator/nifs/common/socket_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/nifs/common/socket_util.c b/erts/emulator/nifs/common/socket_util.c index ff50fd2384..766d3724c1 100644 --- a/erts/emulator/nifs/common/socket_util.c +++ b/erts/emulator/nifs/common/socket_util.c @@ -1506,7 +1506,7 @@ void esock_warning_msg( const char* format, ... ) { va_list args; char f[512 + sizeof(format)]; // This has to suffice... - char stamp[32]; + char stamp[64]; // Just in case... struct timespec ts; int res; |