]> git.itanic.dy.fi Git - scan-pagemap/commit
parse: Fix out of bound access
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 29 Nov 2022 13:28:08 +0000 (15:28 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 29 Nov 2022 13:28:08 +0000 (15:28 +0200)
commit692443c49eae3e9409d566fc1f10cd6c3da2ca05
tree6d0e35bf81e98287d8dbd0062552b4829dc20ba6
parentc6bf9e374cbaf6c3bdb9cc86cc05cec843c319c0
parse: Fix out of bound access

Make sure the copy length is at least one shorter than the buffer
size. This isn't strictly required as we would be forcefully NULL
terminating the string aynway, but this silences the compiler warning
we are getting with modern versions of gcc.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
parse.c