[PATCH] libosmocore osmo_revbytebits_buf stack trashing
3 Jan
2013
3 Jan
'13
1:58 a.m.
Hi, The second loop in osmo_revbytebits_buf() in src/bits.c grabs 4 bytes each iteration, which can easily go past the supplied input in some cases. Compiled with -fstack-protector , I get a "stack smashing detected" in the bits test. Attached patch should deal with that.
3 Jan
3 Jan
10:36 a.m.
Hi,
The second loop in osmo_revbytebits_buf() in src/bits.c grabs 4 bytes each iteration, which can easily go past the supplied input in some cases. Compiled with -fstack-protector , I get a "stack smashing detected" in the bits test.
nice catch. Applied. Cheers, Sylvain
5061
Age (days ago)
5062
Last active (days ago)
1 comments
2 participants
participants (2)
-
noselasd@fiane.dyndns.org -
Sylvain Munaut