diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-12-09 17:58:17 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-12-09 17:59:58 +0100 |
commit | a24be85dc41885ee77072af9f079c69c575061e9 (patch) | |
tree | 2c1591987d0e7f08e81412bd1ae9548bcb822445 /src/gsm/comp128.c | |
parent | 665d48bf15602e8666b292dbe66881786af2ea95 (diff) |
Fix msgb_test on 64 bit architectures
truncating the unsigned long pointer msg->data to 'int' and then passin
git into msgb_resize_area() is unsafe as depending on the 32rd address
bit it will be eiether negative or positive. That will in turn change
the expected "Sub area is not fully contained in the msg data\n" error
message into "Negative sizes are not allowed\n" which is not what the
autotest case expects.
Change-Id: I87ce13c265704d4ba8724e7dc7ed874c1128e0fa
Diffstat (limited to 'src/gsm/comp128.c')
0 files changed, 0 insertions, 0 deletions