summaryrefslogtreecommitdiffstats
path: root/src/callbacks.c
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2011-11-25 23:00:13 -0500
committerAndreas Schneider <asn@cryptomilk.org>2012-10-22 21:00:08 +0200
commitd404ad71525a5cad91d030e20c5346470b20e46d (patch)
treef978c8df0c23d2375fbbb4f5979cc71cd0d3a363 /src/callbacks.c
parenta4ffaff550c5a5987fcf7fb5c5d2aab493428505 (diff)
downloadlibssh-d404ad71525a5cad91d030e20c5346470b20e46d.tar.gz
libssh-d404ad71525a5cad91d030e20c5346470b20e46d.tar.xz
libssh-d404ad71525a5cad91d030e20c5346470b20e46d.zip
channels: Fix integer overflow in generate_cookie().
Since the type of rnd[i] is signed char, (rnd[i] >> 4), which is considered as arithmetic shift by gcc, could be negative, leading to out-of-bounds read.
Diffstat (limited to 'src/callbacks.c')
0 files changed, 0 insertions, 0 deletions