gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 18/28: fix integer overflow test to actually work


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 18/28: fix integer overflow test to actually work
Date: Fri, 10 Mar 2017 18:19:02 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

commit ee232f9c14bd879235e6586484083ff91addd052
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Mar 10 17:56:17 2017 +0100

    fix integer overflow test to actually work
---
 src/transport/plugin_transport_udp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/transport/plugin_transport_udp.c 
b/src/transport/plugin_transport_udp.c
index 76132523b..eb48341b7 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -1623,7 +1623,7 @@ enqueue (struct Plugin *plugin,
     GNUNET_break (0);
     return;
   }
-  if (plugin->bytes_in_buffer + udpw->msg_size > INT64_MAX)
+  if (plugin->bytes_in_buffer > INT64_MAX - udpw->msg_size)
   {
     GNUNET_break (0);
   }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]