summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/systemtap/systemtap_git.bb
diff options
context:
space:
mode:
authorvirendra thakur <thakur.virendra1810@gmail.com>2024-01-23 10:58:20 +0530
committerSteve Sakoman <steve@sakoman.com>2024-01-31 03:51:10 -1000
commita528dc22aafff4e91f01a48525ab19cf5eef395b (patch)
tree1f7128b21dee7c22caf7dfb1a3ca245c9dcb2ea8 /meta/recipes-kernel/systemtap/systemtap_git.bb
parent4bda99df75e25df5ba6dccbd6df9ab3f089bb134 (diff)
downloadpoky-a528dc22aafff4e91f01a48525ab19cf5eef395b.tar.gz
opkg: Fix bad memory access error observe in file_read_line_alloc
In the case of a zero length string being returned by fgets(), the condition checking for a trailing new line would perform a bad memory access outside of `buf`. This might happen when line with a leading null byte is read. Avoid this case by checking that the string has a length of at least one byte. Link: https://github.com/ndmsystems/opkg/commit/8b45a3c4cab95382beea1ecdddeb2e4a9ed14aba (From OE-Core rev: 32e3618891295cec1ee5d4195998aa97f93b2207) Signed-off-by: virendra thakur <virendrak@kpit.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-kernel/systemtap/systemtap_git.bb')
0 files changed, 0 insertions, 0 deletions