Files
q3-sydney-qvm/code/client
Simon McVittie c5b6bb0d4b snd_wavelet: avoid undefined pointer below array bounds
Given an array b[] of length n, pointers to &b[0]..&b[n] are defined
(where only &b[0]..&b[n-1] can be validly dereferenced). &b[-1], or
equivalently b-1, is not something we can use in valid Standard C.

gcc 6 diagnoses this as:

code/client/snd_wavelet.c:33:9: warning: array subscript is below array bounds [-Warray-bounds]

and might take this undefined behaviour as permission to emit
"more efficient" object code that is not what the author expected,
for example nothing at all. Use a macro to fake a 1-based array instead.
2016-09-25 17:13:40 +01:00
..
2016-01-06 05:19:10 -06:00
2015-09-26 10:54:16 +01:00
2016-06-12 17:17:33 -04:00
2016-08-08 02:36:10 -07:00
2016-08-08 02:36:10 -07:00
2016-08-04 21:31:26 -07:00
2016-01-06 05:19:10 -06:00
2016-01-06 05:19:10 -06:00
2016-08-08 02:36:10 -07:00
2014-02-22 18:06:04 -06:00
2016-06-12 17:17:33 -04:00
2013-02-17 18:32:05 -06:00
2013-02-17 18:32:05 -06:00
2016-06-12 17:17:33 -04:00
2016-06-12 17:17:33 -04:00
2012-06-18 16:32:03 +00:00