diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-17 09:04:33 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-10-17 09:04:33 +0200 |
commit | efd624e7924ee0456ea18a1958f38cc9ea52a963 (patch) | |
tree | 3bf29be26dd5a54f300fe94a769b93cda3683c8b /package/libmad/patches/patch-layer3_c | |
parent | 1a10d0e3ef4d137a9093d27c99fec286a083c521 (diff) | |
parent | 7a464646964980beb100d22836ad36c02c695744 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/libmad/patches/patch-layer3_c')
-rw-r--r-- | package/libmad/patches/patch-layer3_c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/libmad/patches/patch-layer3_c b/package/libmad/patches/patch-layer3_c new file mode 100644 index 000000000..d8e4249de --- /dev/null +++ b/package/libmad/patches/patch-layer3_c @@ -0,0 +1,15 @@ +--- libmad-0.15.1b.orig/layer3.c 2004-01-23 10:41:32.000000000 +0100 ++++ libmad-0.15.1b/layer3.c 2013-10-16 10:51:25.000000000 +0200 +@@ -2608,6 +2608,12 @@ int mad_layer_III(struct mad_stream *str + next_md_begin = 0; + + md_len = si.main_data_begin + frame_space - next_md_begin; ++ if (md_len + MAD_BUFFER_GUARD > MAD_BUFFER_MDLEN) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + + frame_used = 0; + |