diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-10 17:56:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-10 17:56:17 +0100 |
commit | ee232f9c14bd879235e6586484083ff91addd052 (patch) | |
tree | f6489dc061631362dd38dd9ebce7cad24ffb38da /src/transport | |
parent | 1a2fad47b4652d3c2819e73ce7706856636b1310 (diff) | |
download | gnunet-ee232f9c14bd879235e6586484083ff91addd052.tar.gz gnunet-ee232f9c14bd879235e6586484083ff91addd052.zip |
fix integer overflow test to actually work
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1623 | GNUNET_break (0); | 1623 | GNUNET_break (0); |
1624 | return; | 1624 | return; |
1625 | } | 1625 | } |
1626 | if (plugin->bytes_in_buffer + udpw->msg_size > INT64_MAX) | 1626 | if (plugin->bytes_in_buffer > INT64_MAX - udpw->msg_size) |
1627 | { | 1627 | { |
1628 | GNUNET_break (0); | 1628 | GNUNET_break (0); |
1629 | } | 1629 | } |