diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-26 08:03:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-26 08:03:25 +0400 |
commit | af7eb3f2106612543e1e0a22e639fdfde3035dc8 (patch) | |
tree | 7c5b3943465c67b8177a46867bf7eef39b099453 /release/scripts/modules/blend_render_info.py | |
parent | 0daa5b0c474067b54b2e26a3408df03c0042f9d8 (diff) |
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.
Diffstat (limited to 'release/scripts/modules/blend_render_info.py')
-rwxr-xr-x | release/scripts/modules/blend_render_info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/blend_render_info.py b/release/scripts/modules/blend_render_info.py index 7c30b480d6b..5a09f664637 100755 --- a/release/scripts/modules/blend_render_info.py +++ b/release/scripts/modules/blend_render_info.py @@ -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')] |