This is an automated email from the git hooks/post-receive script. fabian pushed a commit to annotated tag debian/5.1.0-2 in repository deutex.
commit 6bdb40fc6a1edec432a9b35c98cdda1d2f6bb851 Author: Fabian Greffrath <[email protected]> Date: Mon Dec 18 21:19:42 2017 +0100 Add patch from upstream GIT to increase the array size for a char variable --- ...ase-array-size-for-char-tname-variable-51.patch | 30 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 31 insertions(+) diff --git a/debian/patches/0001-increase-array-size-for-char-tname-variable-51.patch b/debian/patches/0001-increase-array-size-for-char-tname-variable-51.patch new file mode 100644 index 0000000..e5891d5 --- /dev/null +++ b/debian/patches/0001-increase-array-size-for-char-tname-variable-51.patch @@ -0,0 +1,30 @@ +From 7024dd74a33780ef2dbdf614f4e52526cc3ab457 Mon Sep 17 00:00:00 2001 +From: Fabian Greffrath <[email protected]> +Date: Mon, 18 Dec 2017 02:12:37 +0100 +Subject: [PATCH] increase array size for char "tname" variable (#51) + +In src/texture.c:466 the "t" variable is of type signed short, so the +theoretically lowest possible value is -32768, which takes 6 digits. +The "TEX" string literal takes another 3 digits, so together with the +'\0' string delimiter byte we need an array size of 10 bytes for the +"tname" variable to be able to store the full maximum length string. +--- + src/texture.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/texture.c b/src/texture.c +index 86c2396..3771c24 100644 +--- a/src/texture.c ++++ b/src/texture.c +@@ -393,7 +393,7 @@ void TXUreadTEXTURE(const char *texture1_name, const char *Data, + int16_t Xofs, Yofs, Pindex; /* x,y coordinate in texture space */ + /* patch name index in PNAMES table */ + int32_t MaxPindex; +- static char tname[8]; /*texture name */ ++ static char tname[10]; /*texture name */ + static char pname[8]; /*patch name */ + size_t header_size = 0; + size_t item_size = 0; +-- +2.15.1 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ce89741 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-increase-array-size-for-char-tname-variable-51.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/deutex.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

