summaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorXi Wang <[email protected]>2013-03-15 07:11:47 -0400
committerLuca Barbato <[email protected]>2013-03-15 12:51:57 +0100
commit8425d693eefbedbb41f91735614d41067695aa37 (patch)
tree3a68041a248305aa27ecbbce03eeb6248fdaf537 /libavformat/utils.c
parenteba1ff31304e407db3cefd7532108408f364367b (diff)
flacdec: simplify bounds checking in flac_probe()
Simplify `p->buf > p->buf + p->buf_size - 4' as `p->buf_size < 4'. Avoid a possible out-of-bounds pointer, which is undefined behavior in C. CC: [email protected] Signed-off-by: Xi Wang <[email protected]> Signed-off-by: Luca Barbato <[email protected]>
Diffstat (limited to 'libavformat/utils.c')
0 files changed, 0 insertions, 0 deletions