mirror of https://gerrit.osmocom.org/libosmocore
Harald Welte
a24be85dc4
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 |
||
---|---|---|
.. | ||
msgb_test.c | ||
msgb_test.ok |