diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-05-27 17:52:28 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-05-27 18:14:29 +0200 |
commit | 6ed5cb8f8f48a604bd4db58192b30a3cb0813286 (patch) | |
tree | 82decd64da562a4b9338ed4b919f91f727afccb5 /games-misc/yadex/files/yadex_170-obj-overflow.patch | |
parent | net-misc/ntp: remove unused patch (diff) | |
download | gentoo-6ed5cb8f8f48a604bd4db58192b30a3cb0813286.tar.gz gentoo-6ed5cb8f8f48a604bd4db58192b30a3cb0813286.tar.bz2 gentoo-6ed5cb8f8f48a604bd4db58192b30a3cb0813286.zip |
games-misc/yadex: Lots of fixes from Fedora (#160305)
Package-Manager: Portage-2.3.38, Repoman-2.3.9
Diffstat (limited to 'games-misc/yadex/files/yadex_170-obj-overflow.patch')
-rw-r--r-- | games-misc/yadex/files/yadex_170-obj-overflow.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/games-misc/yadex/files/yadex_170-obj-overflow.patch b/games-misc/yadex/files/yadex_170-obj-overflow.patch new file mode 100644 index 000000000000..aba86f1e0e0e --- /dev/null +++ b/games-misc/yadex/files/yadex_170-obj-overflow.patch @@ -0,0 +1,22 @@ +--- yadex-1.7.0/src/objects.cc 2003-03-28 06:37:32.000000000 -0600 ++++ yadex-1.7.0/src/objects.cc 2010-05-06 11:42:36.824661556 -0500 +@@ -543,7 +543,7 @@ + SideDefs[last].yoff = 0; + strcpy (SideDefs[last].tex1, "-"); + strcpy (SideDefs[last].tex2, "-"); +- strcpy (SideDefs[last].tex3, default_middle_texture); ++ strncpy (SideDefs[last].tex3, default_middle_texture, sizeof(SideDefs[last].tex3)); + SideDefs[last].sector = NumSectors - 1; + } + MadeMapChanges = 1; +--- yadex-1.7.0/src/editobj.cc 2003-04-24 15:32:39.000000000 -0500 ++++ yadex-1.7.0/src/editobj.cc 2010-05-07 16:36:49.825412601 -0500 +@@ -937,7 +937,7 @@ + struct SideDef *s = SideDefs + l->sidedef1; + strcpy (s->tex1, "-"); + strcpy (s->tex2, "-"); +- strcpy (s->tex3, default_middle_texture); ++ strncpy (s->tex3, default_middle_texture, sizeof(s->tex3)); + } + /* Don't delete the 2nd sidedef, it could be used + by another linedef. And if it isn't, the next |