Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-10-08 19:42:49 +0400
committerTon Roosendaal <ton@blender.org>2008-10-08 19:42:49 +0400
commit9ebcaad82f47ab38a271d5a8a13d96e8f25ba52b (patch)
tree8d4d4f5ebf485d14205120d12b8b563443461586 /source
parent75f458022e87379def66743bb4fa43fdd478d298 (diff)
Bugfix #17769
Someone managed to write over the protected part of ID name (python???). This crashes blender in unexpted place, added error print for this.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/library.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index c3dddf06e7c..3d1b342bf73 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -407,6 +407,10 @@ void *copy_libblock(void *rt)
lb= wich_libbase(G.main, GS(id->name));
idn= alloc_libblock(lb, GS(id->name), id->name+2);
+ if(idn==NULL) {
+ printf("ERROR: Illegal ID name for %s (Crashing now)\n", id->name);
+ }
+
idn_len= MEM_allocN_len(idn);
if(idn_len - sizeof(ID) > 0) {
cp= (char *)id;