summaryrefslogtreecommitdiff
path: root/librt/shm.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-08-06 11:34:11 +0300
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-08-06 16:10:28 +0200
commitace0878b0b708e1b04e9e7a62f26c1dc3b9295b5 (patch)
tree1d8a037744061620af2f66846d041878bdebe150 /librt/shm.c
parent7a450ac87de9007fe5e7b738934f73fc14cabec7 (diff)
config parser: fix memory corruption
fgets will happily write over allocated area limits. Adjusted the buffer size according to how much is already read. Also increase the maximum default line length, as 80 is slightly small. It might be better if bb_get_chunk_with_continuation would reallocate the line buffer if it was not user given. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'librt/shm.c')
0 files changed, 0 insertions, 0 deletions