diff options
author | wm4 <wm4@nowhere> | 2014-01-03 00:34:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-03 00:34:15 +0100 |
commit | 7ed4ce91e8a4f9979ac92391c74fcca1459863d7 (patch) | |
tree | 2cbcd8394c79fdcc9ad8efb82a0473dc00bafa10 /sub/dec_sub.h | |
parent | 2cad237f8bea862923bf9e7e2d7c55544f6248e0 (diff) | |
download | mpv-7ed4ce91e8a4f9979ac92391c74fcca1459863d7.tar.bz2 mpv-7ed4ce91e8a4f9979ac92391c74fcca1459863d7.tar.xz |
bstr: check for overflow in buffer allocation
We're being a little bit lazy here and limit the max allocation to
SIZE_MAX/2, which is practically infinite anyway on 64 bit systems.
Diffstat (limited to 'sub/dec_sub.h')
0 files changed, 0 insertions, 0 deletions