summaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorMark Thompson <[email protected]>2018-03-11 14:40:23 +0000
committerMark Thompson <[email protected]>2018-03-18 17:54:55 +0000
commit0e782661d63b39d729b2167e75a690b4e2934740 (patch)
treecf25484ebe10d89d5466f8fb497e75160f06665f /doc/examples
parentce1d77a5e7cebce11074bf6f9e38ad6da37338ff (diff)
cbs_h264: Fix overflow in shifts
The type of the result of a shift operation is unaffected by the type of the right operand, so some existing code overflows with undefined behaviour when the element length is 32. Add a helper macro to calculate the maximum value correctly and then use it everywhere this pattern appears. Found-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'doc/examples')
0 files changed, 0 insertions, 0 deletions