Commit: f35489fa94f6e8f11b228f848c4eecc4dbd3cd9e
Author: Sergey Sharybin
Date:   Wed Apr 22 23:00:41 2015 +0500
Branches: master
https://developer.blender.org/rBf35489fa94f6e8f11b228f848c4eecc4dbd3cd9e

Tracking: Fix missing pointer array check when reading plane track

This could cause memory corruption when moving files from system with one
bitness to another.

===================================================================

M       source/blender/blenloader/intern/readfile.c

===================================================================

diff --git a/source/blender/blenloader/intern/readfile.c 
b/source/blender/blenloader/intern/readfile.c
index 21d69fe..9dcb872 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -7075,7 +7075,7 @@ static void direct_link_moviePlaneTracks(FileData *fd, 
ListBase *plane_tracks_ba
                int i;
 
                plane_track->point_tracks = newdataadr(fd, 
plane_track->point_tracks);
-
+               test_pointer_array(fd, (void**)&plane_track->point_tracks);
                for (i = 0; i < plane_track->point_tracksnr; i++) {
                        plane_track->point_tracks[i] = newdataadr(fd, 
plane_track->point_tracks[i]);
                }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to