[PATCH] libosmocore osmo_revbytebits_buf stack trashing
2 Jan
2013
2 Jan
'13
11:58 p.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
8: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
5085
Age (days ago)
5086
Last active (days ago)
1 comments
2 participants
participants (2)
-
noselasd@fiane.dyndns.org -
Sylvain Munaut