diff options
author | Raimo Niskanen <[email protected]> | 2011-12-15 14:29:58 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2011-12-20 12:07:41 +0100 |
commit | d34e248f0913a337f1662e07b15298f9a082834b (patch) | |
tree | 33cd19536a1f8f8ee21c03ee3621e56a85a4ce4d /erts | |
parent | e5f0a210a5b60c81172e8bdba9227abdb0834bb4 (diff) | |
download | otp-d34e248f0913a337f1662e07b15298f9a082834b.tar.gz otp-d34e248f0913a337f1662e07b15298f9a082834b.tar.bz2 otp-d34e248f0913a337f1662e07b15298f9a082834b.zip |
erts: Bugfix - driver_deq freed wrong length due to short type (int)
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/beam/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c index 49cd0e5f53..6b89fc32e9 100644 --- a/erts/emulator/beam/io.c +++ b/erts/emulator/beam/io.c @@ -3912,7 +3912,7 @@ int driver_pushqv(ErlDrvPort ix, ErlIOVec* vec, ErlDrvSizeT skip) ErlDrvSizeT driver_deq(ErlDrvPort ix, ErlDrvSizeT size) { ErlIOQueue* q = drvport2ioq(ix); - int len; + ErlDrvSizeT len; if ((q == NULL) || (q->size < size)) return -1; |