fix for buffer overrun crash with saving scene name longer then 24 characters.

writing render info would try write= 64 length string into 24 length buffer.

updated py script to extract render info too.
This commit is contained in:
Campbell Barton
2012-04-26 04:03:25 +00:00
parent 0daa5b0c47
commit af7eb3f210
2 changed files with 13 additions and 7 deletions

View File

@@ -75,7 +75,7 @@ def read_blend_rend_chunk(path):
# Now we want the scene name, start and end frame. this is 32bites long
start_frame, end_frame = struct.unpack('>2i' if is_big_endian else '<2i', blendfile.read(8))
scene_name = blendfile.read(24)
scene_name = blendfile.read(64)
scene_name = scene_name[:scene_name.index(b'\0')]