diff options
Diffstat (limited to 'media-gfx/blender/files/blender-2.46-cve-2008-1103-1.patch')
-rw-r--r-- | media-gfx/blender/files/blender-2.46-cve-2008-1103-1.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/media-gfx/blender/files/blender-2.46-cve-2008-1103-1.patch b/media-gfx/blender/files/blender-2.46-cve-2008-1103-1.patch new file mode 100644 index 0000000..c45a811 --- /dev/null +++ b/media-gfx/blender/files/blender-2.46-cve-2008-1103-1.patch @@ -0,0 +1,12 @@ +diff -up blender/source/blender/blenkernel/intern/blender.c.cve blender/source/blender/blenkernel/intern/blender.c +--- blender/source/blender/blenkernel/intern/blender.c.cve 2008-05-07 17:37:52.000000000 +0200 ++++ blender/source/blender/blenkernel/intern/blender.c 2008-05-07 17:38:22.000000000 +0200 +@@ -716,7 +716,7 @@ void BKE_undo_save_quit(void) + + BLI_make_file_string("/", str, btempdir, "quit.blend"); + +- file = open(str,O_BINARY+O_WRONLY+O_CREAT+O_TRUNC, 0666); ++ file = open(str,O_BINARY+O_WRONLY+O_CREAT+O_TRUNC+O_EXCL, 0666); + if(file == -1) { + error("Unable to save %s, check you have permissions", str); + return; |