Commit Graph

9 Commits

Author SHA1 Message Date
James Zern
6044fcec3e nestegg: ne_buffer_read: quiet uint64->size_t warning
the buffer length is already a size_t making the offset into it limited

Change-Id: Ibc5352e69049186cc07f7d86117696b11a98a600
2014-03-03 18:40:15 -08:00
James Zern
5ba01a5a45 nestegg: quiet read related uint64->size_t warnings
ne_read_ebml_lacing / ne_read_discard_padding
+ add some asserts

Change-Id: I28d0ec5c8f901ae0a35928a8f512c51b3ecf177d
2014-03-03 18:40:06 -08:00
James Zern
9251ff3ad7 nestegg: ne_parse: normalize size_t usage
in calls to ne_read_simple / ne_io_read_skip

Change-Id: I5c4fc3bb41832973830ad54248839d6a4944aae6
2014-03-03 18:40:00 -08:00
James Zern
483ebc30bc nestegg: ne_read_(string|binary|block): normalize size_t usage
+ nestegg_track_codec_data
quiets uint64_t -> size_t warnings
the sizes used are previously validated against their associated LIMIT_*
values

Change-Id: Ie574a3a7496d0143bd58b778145c27f38dd6a4da
2014-03-03 18:39:43 -08:00
James Zern
086dc8097d nestegg: packet_track: fix uint64->uint32 warning
Change-Id: I67b2b0d722424df9938d7c26f9d3478592bc813a
2014-02-28 19:58:44 -08:00
James Zern
eb27992d15 nestegg: fix track_scale double->uint64 warning
Change-Id: I24c024d1b328b9c34289c125c501d2fdc246e92e
2014-02-28 19:58:33 -08:00
James Zern
ba159a3b0a nestegg: fix track_number uint64->uint32 warnings
ne_read_block/ne_find_cue_position_for_track/nestegg_get_cue_point
in the use of ne_map_track_number_to_index
+ add a check to ensure it doesn't exceed the type bounds

fixes:
./third_party/nestegg/src/nestegg.c|1322| warning C4244: 'function' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data

Change-Id: I3703d739dcf9a2d4d8e2b704e957e5e3fd80dca0
2014-02-28 19:58:19 -08:00
James Zern
d743bd04d5 nestegg: add ne_get_uint32 convenience function
- avoids downcasting from uint64_t in multiple locations

Change-Id: Ia6f669a9ee81336ed1ef29a6a79240d5905acab5
2014-02-28 19:58:00 -08:00
James Zern
bb3b9aa93f move nestegg to third_party
Change-Id: Idf58109195a88dec66c5e1ea6a51c61e6c659ff1
2014-02-21 17:16:04 -08:00