diff options
author | Daniel Black <dragonheart@gentoo.org> | 2005-09-29 21:51:51 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2005-09-29 21:51:51 +0000 |
commit | 4fa8c9fd11eda945f2bb169e559422ad5c4cf5ff (patch) | |
tree | 3c7e8485b71fd3922d0690e59cea47d11d1bd879 /dev-util/intel2gas/files | |
parent | Fixes a bug, which I cant find :) Also helps out those who want static /dev, ... (diff) | |
download | gentoo-2-4fa8c9fd11eda945f2bb169e559422ad5c4cf5ff.tar.gz gentoo-2-4fa8c9fd11eda945f2bb169e559422ad5c4cf5ff.tar.bz2 gentoo-2-4fa8c9fd11eda945f2bb169e559422ad5c4cf5ff.zip |
segv patch added - bug #96619
(Portage version: 2.0.52-r1)
Diffstat (limited to 'dev-util/intel2gas/files')
-rw-r--r-- | dev-util/intel2gas/files/digest-intel2gas-1.3.3-r2 (renamed from dev-util/intel2gas/files/digest-intel2gas-1.3.3-r1) | 0 | ||||
-rw-r--r-- | dev-util/intel2gas/files/intel2gas-1.3.3-segfault.patch | 34 |
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-util/intel2gas/files/digest-intel2gas-1.3.3-r1 b/dev-util/intel2gas/files/digest-intel2gas-1.3.3-r2 index bdf25c73245d..bdf25c73245d 100644 --- a/dev-util/intel2gas/files/digest-intel2gas-1.3.3-r1 +++ b/dev-util/intel2gas/files/digest-intel2gas-1.3.3-r2 diff --git a/dev-util/intel2gas/files/intel2gas-1.3.3-segfault.patch b/dev-util/intel2gas/files/intel2gas-1.3.3-segfault.patch new file mode 100644 index 000000000000..d095f8f38c6e --- /dev/null +++ b/dev-util/intel2gas/files/intel2gas-1.3.3-segfault.patch @@ -0,0 +1,34 @@ +--- intel2gas-1.3.3/loaddata.cc 2000-06-20 21:57:28.000000000 +0200 ++++ intel2gas-1.3.3-r1/loaddata.cc 2005-09-29 13:29:05.000000000 +0200 +@@ -13,6 +13,7 @@ + + #include <stdlib.h> + #include <string.h> ++#include <errno.h> + #ifdef USE_GLOB + #include <glob.h> // Find files + #else +@@ -155,7 +156,10 @@ + // where filename is listname.nn.list + { + FILE *f; +- f = fopen(filename,"r"); ++ if((f = fopen(filename,"r")) == NULL) { ++ perror("fopen"); ++ exit(errno); ++ } + current_line = 0; + + list_t *l = newList(); +@@ -213,7 +217,10 @@ + // where filename is syntaxname.syntax + { + FILE *f; +- f = fopen(filename,"r"); ++ if((f = fopen(filename,"r")) == NULL) { ++ perror("fopen"); ++ exit(errno); ++ } + current_line = 0; + + char name[STR_LEN+1]; |