osmocon: Fix out-of-bounds for partial reads in un_tool_read()
commit7f7a7c850e404d24cd3bc9d2b9b408287e4e0ba0
authorHarald Welte <laforge@gnumonks.org>
Sun, 21 Jul 2019 06:05:22 +0000 (21 08:05 +0200)
committerHarald Welte <laforge@gnumonks.org>
Sun, 21 Jul 2019 06:05:22 +0000 (21 08:05 +0200)
tree9c958c2fe5da915b0d1944190b372a24a4b77578
parent4b742700a4457723652dd37c833a1b101583a7a3
osmocon: Fix out-of-bounds for partial reads in un_tool_read()

"uint8_t buf[4096]; ... &buf + 1" renders an offset of 4096, and not 1!

Change-Id: Ie1407371fe949c3d5746b9fdc32ececc9443692b
Closes: CID#198580
src/host/osmocon/osmocon.c