1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-21 07:16:56 +00:00
mpv/player
Avi Halachmi (:avih) fc56798aca js: correctness: use integer range checks
There were some cases where a js number (double) was blindly casted to
int or uint64, but that can be undefined behavior (out of range to int)
or wrong (negative to uint).

Now the code throws a js error if the value is out of range.

Additionally, commit ec625266 added these checks for the new hooks API,
but incorrectly tested int64 range rather than uint64. Fix this too.
2019-09-11 21:08:04 +03:00
..
javascript js: use new hooks API (match f60826c3) 2018-04-07 16:02:20 -07:00
lua osc: improve look of seekranges 2019-09-02 01:11:04 +03:00
audio.c audio: increase a buffer size 2018-10-31 09:20:26 +01:00
client.c client: fix potential mpv_cmd/async leak 2019-07-08 16:42:47 +02:00
client.h command: add infrastructure for async commands 2018-05-24 19:56:34 +02:00
command.c Merge branch 'master' into pr6360 2019-03-11 01:00:27 +02:00
command.h command: add a way to abort asynchronous commands 2018-05-24 19:56:34 +02:00
configfiles.c player: remove deprecated vo/ao auto profiles 2018-05-31 01:24:51 +03:00
core.h Merge commit '559a400ac36e75a8d73ba263fd7fa6736df1c2da' into wm4-commits--merge-edition 2018-12-05 19:19:24 +01:00
external_files.c external_files: add .lrc subtitle extension 2019-09-02 01:25:43 +03:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c js: correctness: use integer range checks 2019-09-11 21:08:04 +03:00
loadfile.c Merge branch 'master' into pr6360 2019-03-11 01:00:27 +02:00
lua.c lua: expose mpv_abort_async_command() 2018-05-24 19:56:34 +02:00
main.c player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
misc.c demux, stream: rip out the classic stream cache 2018-08-31 12:55:22 +02:00
osd.c demux, stream: rip out the classic stream cache 2018-08-31 12:55:22 +02:00
playloop.c audio: block ao buffer for keep-open 2019-09-09 00:01:16 +02:00
screenshot.c command: add a way to abort asynchronous commands 2018-05-24 19:56:34 +02:00
screenshot.h command: move screenshot command stubs to screenshot.c 2018-05-24 19:56:34 +02:00
scripting.c scripting: change when/how player waits for scripts being loaded 2018-04-18 01:17:41 +03:00
sub.c player: don't cache subtitles across deselection 2018-06-30 17:15:29 +02:00
video.c video: trust container FPS early on if possible 2018-05-25 10:45:54 +02:00