diff options
Diffstat (limited to 'app-misc/slmon/files')
-rw-r--r-- | app-misc/slmon/files/slmon-0.5.13-invalid-free.patch | 18 | ||||
-rw-r--r-- | app-misc/slmon/files/slmon-0.5.13-make-382.patch | 11 |
2 files changed, 29 insertions, 0 deletions
diff --git a/app-misc/slmon/files/slmon-0.5.13-invalid-free.patch b/app-misc/slmon/files/slmon-0.5.13-invalid-free.patch new file mode 100644 index 000000000000..d7b0e24e07d9 --- /dev/null +++ b/app-misc/slmon/files/slmon-0.5.13-invalid-free.patch @@ -0,0 +1,18 @@ +http://bugs.gentoo.org/151293 + +--- rc.c ++++ rc.c +@@ -177,9 +177,10 @@ + char *home, dotrc[1024] = { 0 }; + + home = getenv("HOME"); +- strcpy(dotrc, home); +- strcat(dotrc, "/.slmonrc"); +- free(home); ++ if ( home != NULL ) { ++ strcpy(dotrc, home); ++ strcat(dotrc, "/.slmonrc"); ++ } + + if ((f = fopen("/etc/slmonrc", "r")) != NULL) { + slmon_conf_parse(f); diff --git a/app-misc/slmon/files/slmon-0.5.13-make-382.patch b/app-misc/slmon/files/slmon-0.5.13-make-382.patch new file mode 100644 index 000000000000..bb128f5803e6 --- /dev/null +++ b/app-misc/slmon/files/slmon-0.5.13-make-382.patch @@ -0,0 +1,11 @@ +http://bugs.gentoo.org/337403 + +--- Makefile.am ++++ Makefile.am +@@ -15,5 +15,5 @@ + #slmon_LDFLAGS = `libgtop-config --cflags --libs` + + release: +- $(MAKE) dist distdir=$(PACKAGE)-$(VERSION) ++ $(MAKE) dist distdir=$(PACKAGE)-$(VERSION) + |