diff options
author | Tom Gall <tom.gall@linaro.org> | 2011-12-20 16:27:51 -0600 |
---|---|---|
committer | Tom Gall <tom.gall@linaro.org> | 2011-12-23 11:38:02 -0600 |
commit | 2c339710eb7dbb5ed2df7bf7d317577446144870 (patch) | |
tree | 167e37d1bfc2c1ba4b38a5dc363eb3db95159c44 | |
parent | e313c57c300cf32b2b937cf851eb2e054d06cd75 (diff) |
port fix from ICS, initialize SOS marker position to avoid undefined behavior
-rw-r--r-- | jdmarker.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1322,6 +1322,9 @@ jinit_marker_reader (j_decompress_ptr cinfo) marker->pub.read_restart_marker = read_restart_marker; #ifdef ANDROID marker->pub.get_sos_marker_position = get_sos_marker_position; + // Initialize the SOS marker position to avoid underdefined behavior due to + // using a undefined field. + marker->pub.current_sos_marker_position = 0; #endif /* ANDROID */ |