diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-10-30 18:35:08 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-10-30 18:35:08 +0100 |
commit | 1ab0a976f9ca411e6e493ce58e643a5cbc010e7f (patch) | |
tree | e8c6d2ccce24653e8b6335569fd14d3d3933489a /freebsd/dependencies/imlib/files/patch-fix-potential-buffer-overflow.diff | |
parent | 4a9a3963f27da4c2979c8450bf86fb3b257b5c7a (diff) | |
download | tde-packaging-2600911639deedbafe8c616fec47f087b88f6366.tar.gz tde-packaging-2600911639deedbafe8c616fec47f087b88f6366.zip |
FreeBSD: Update for final release R14.0.4r14.0.4
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'freebsd/dependencies/imlib/files/patch-fix-potential-buffer-overflow.diff')
-rw-r--r-- | freebsd/dependencies/imlib/files/patch-fix-potential-buffer-overflow.diff | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/freebsd/dependencies/imlib/files/patch-fix-potential-buffer-overflow.diff b/freebsd/dependencies/imlib/files/patch-fix-potential-buffer-overflow.diff new file mode 100644 index 000000000..406aead10 --- /dev/null +++ b/freebsd/dependencies/imlib/files/patch-fix-potential-buffer-overflow.diff @@ -0,0 +1,19 @@ +Index: b/Imlib/load.c +=================================================================== +--- a/Imlib/load.c ++++ b/Imlib/load.c +@@ -1974,11 +1974,11 @@ + if (iden[0]) + { + #ifndef __EMX__ +- strncat(fil, ":", sizeof(fil) - strlen(fil)); ++ strncat(fil, ":", sizeof(fil) - strlen(fil) - 1); + #else +- strncat(fil, ";", sizeof(fil) - strlen(fil)); ++ strncat(fil, ";", sizeof(fil) - strlen(fil) - 1); + #endif +- strncat(fil, iden, sizeof(fil) - strlen(fil)); ++ strncat(fil, iden, sizeof(fil) - strlen(fil) - 1); + } + } + im->mod.gamma = id->mod.gamma; |