summaryrefslogtreecommitdiff
path: root/dev-cpp/libmcpp/files/libmcpp-2.7.2-gniibe.patch
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2021-06-12 12:29:35 -0500
committerJohn Helmert III <ajak@gentoo.org>2021-06-12 12:29:56 -0500
commit95af7c77e3687fb248aeec1c40682ae78d8e64b2 (patch)
treefafc72621d935ba6ba27c19fec7a6a5882f3a726 /dev-cpp/libmcpp/files/libmcpp-2.7.2-gniibe.patch
parentd2db6e76954031c626fd6bac054bd6de232037a3 (diff)
downloadgentoo-95af7c77e3687fb248aeec1c40682ae78d8e64b2.tar.gz
gentoo-95af7c77e3687fb248aeec1c40682ae78d8e64b2.tar.bz2
gentoo-95af7c77e3687fb248aeec1c40682ae78d8e64b2.zip
dev-cpp/libmcpp: drop 2.7.2-r3
Bug: https://bugs.gentoo.org/718808 Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'dev-cpp/libmcpp/files/libmcpp-2.7.2-gniibe.patch')
-rw-r--r--dev-cpp/libmcpp/files/libmcpp-2.7.2-gniibe.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/dev-cpp/libmcpp/files/libmcpp-2.7.2-gniibe.patch b/dev-cpp/libmcpp/files/libmcpp-2.7.2-gniibe.patch
deleted file mode 100644
index cb5aa6c345ce..000000000000
--- a/dev-cpp/libmcpp/files/libmcpp-2.7.2-gniibe.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-Description: Simple fixes
- * Fix freeing unmalloced memory
- The memory of 'in_file' is not malloced, but points to argv[].
- It is wrong to free it.
- * When there is no input file specified by argv, it causes error
- and fp_in == NULL. Check is needed to call fclose for fp_in.
-Author: NIIBE Yutaka
-
-## Fixes the issue reported at:
-## http://www.forallsecure.com/bug-reports/6b11b6fccda17cc467e055ccf7fec3fa2d89ec00/
-
-Index: mcpp-2.7.2/src/main.c
-===================================================================
---- mcpp-2.7.2.orig/src/main.c 2013-07-09 03:03:05.610947658 +0000
-+++ mcpp-2.7.2/src/main.c 2013-07-09 03:03:05.534947624 +0000
-@@ -428,16 +428,11 @@
-
- fatal_error_exit:
- #if MCPP_LIB
-- /* Free malloced memory */
-- if (mcpp_debug & MACRO_CALL) {
-- if (in_file != stdin_name)
-- free( in_file);
-- }
- clear_filelist();
- clear_symtable();
- #endif
-
-- if (fp_in != stdin)
-+ if (fp_in && fp_in != stdin)
- fclose( fp_in);
- if (fp_out != stdout)
- fclose( fp_out);