7bf6e05170
strcat()'ing a string onto the result of file2str() will result in a buffer overflow, since file2str() only allocates enough memory to hold the contents of the file (plus a NUL terminator). This happend in `bluewave.c`. Instead, use `file2stralloc` to read the contents of that file into a stralloc, which we can stralloc_cats onto without fear of overflow. Signed-off-by: Dan Cross <patchdev@fat-dragon.org> |
||
---|---|---|
deps | ||
dist | ||
docs | ||
src | ||
utils | ||
.gitignore | ||
.gitlab-ci.yml | ||
.gitmodules | ||
file_id.diz | ||
GNUmakefile | ||
LICENSE.txt | ||
README.md | ||
setup.sh | ||
STRINGS.CHANGES |
MagickaBBS
A Bulletin Board System for UN*X like platforms.
For documentation, see http://docs.magickabbs.com/