/[Apache-SVN]
ViewVC logotype

Revision 1551941


Jump to revision: Previous Next
Author: dcreager
Date: Wed Dec 18 13:31:53 2013 UTC (10 years, 6 months ago)
Changed paths: 6
Log Message:
AVRO-1237. C: Verify union discriminant when reading Avro data files.

Test case submitted by Michael Cooper.  Michael's original fix was to
perform a bounds check in avro_value_set_branch, but I've opted for a
solution in avro_value_read.  This has two benefits: the check is only
performed when reading a discriminant value from an unsafe source, and
it doesn't impose an extra burden on anyone writing their own custom
value implementations.


Changed paths

Path Details
Directoryavro/trunk/CHANGES.txt modified , text changed
Directoryavro/trunk/lang/c/src/value-read.c modified , text changed
Directoryavro/trunk/lang/c/tests/CMakeLists.txt modified , text changed
Directoryavro/trunk/lang/c/tests/avro-1237-bad-union-discriminant.avro added
Directoryavro/trunk/lang/c/tests/avro-1237-good.avro added
Directoryavro/trunk/lang/c/tests/test_avro_1237.c added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26