aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/nifs/common/socket_util.c
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-10-16 15:53:37 +0200
committerMicael Karlberg <[email protected]>2018-10-16 15:53:37 +0200
commit043624804888dc021a75b01c0a3d8c1c0a1fde23 (patch)
treed143e2561adf5e87335329565ad05026efb15dbd /erts/emulator/nifs/common/socket_util.c
parentf2481d58a2fb64b8f3c7cbb26e09cb17c04726e0 (diff)
downloadotp-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.c2
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;