]> granicus.if.org Git - graphviz/commit
exsplit: fix missing NUL terminator append in GVPR splitting
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 16 Oct 2021 20:49:40 +0000 (13:49 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 19 Oct 2021 14:46:14 +0000 (07:46 -0700)
commit742f5f4988d826223c6a8e165f11502a26b2ab83
tree221f4e149376f3094f9824454fe8eb5d2cbaccb0
parentc44e922516cbbcb2c40846932b111fe1a3eced44
exsplit: fix missing NUL terminator append in GVPR splitting

Commit 7ef9d53e2e6dc53c44939ace7a9cad57c3aa00bf refactored this code to avoid
the use of an SFIO buffer, inadvertently introducing a bug. The change did not
account for the source buffer not being NUL terminated. This fix wicks closer to
the original code, not assuming a NUL terminator and copying a known number of
bytes into the destination.

Related to #2138.
lib/expr/exeval.c