diff options
Diffstat (limited to 'sci-astronomy/xephem/files/xephem-3.7.4-overflows.patch')
-rw-r--r-- | sci-astronomy/xephem/files/xephem-3.7.4-overflows.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sci-astronomy/xephem/files/xephem-3.7.4-overflows.patch b/sci-astronomy/xephem/files/xephem-3.7.4-overflows.patch new file mode 100644 index 000000000000..2dd5e55c3696 --- /dev/null +++ b/sci-astronomy/xephem/files/xephem-3.7.4-overflows.patch @@ -0,0 +1,15 @@ +Fix buffer overflow + +http://bugs.gentoo.org/show_bug.cgi?id=339901 + +--- GUI/xephem/tools/lx200xed/liblx200.c ++++ GUI/xephem/tools/lx200xed/liblx200.c +@@ -855,7 +855,7 @@ + return(LX200_FALSE); /*Probably ought to verify all characters are acceptable*/ + szCmd[1]='L' + iSite; + szCmd[2]='\0'; +- snprintf(szSite,6,"%3s",buf); ++ snprintf(szSite,4,"%3s",buf); + return(lx200_set_generic(fd,szCmd,szSite)); + } + |