On Wed, 2011-12-21 at 15:28 +0100, Luca Barbato wrote:
> On 21/12/11 14:58, Tomas Härdin wrote:
> > I hope you made sure the code still work fine on 32-bit systems,
> > especially when entry counts are ~10^9.
> 
> Do you have a sample for that?

FATE sample with a single bit flipped at 0x1e9d, turning the zero-entry
index entry into a 1 Gi entry one:
http://titan.codemill.se/~tomhar/samples/C0023S01-ohnoes.mxf

Or you could just simulate a bit being flipped by changing
mxf_read_index_entry_array() thusly:

-    segment->nb_index_entries = avio_rb32(pb);
+    segment->nb_index_entries = avio_rb32(pb) ^ (1 << 30);

Caveat: I don't know how the multiplication and subsequent cast to
size_t behaves on 32-bit. Casting to int and using av_mallocz() SIGSEGVs
as expected.

/Tomas

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to