CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2023/11/05 01:39:16
Modified files:
gnu/usr.bin/texinfo/makeinfo: makeinfo.c
Log message:
fix bad path allocation in makeinfo
In one branch of the image handling, the wrong malloc() call was
copied-pasted making the allocation possibly smaller than needed.
Spotted while building the gcc11 port, libgccjit.info exercise that
branch and the write out of bounds was discovered by malloc().
Convert the malloc + strlcpy/cat dance to an asprintf, and while here
also fix the leak of the two paths.
ok tb@