1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00
mpv/misc
wm4 4a7c6aaedf bstr: fix possible undefined behavior with length 0 strings
BSTR_P() passes the string length and start pointer to printf-like
functions. If the lenfth is 0, the pointer can be NULL, but we're
actually still not allowed to pass a NULL pointer in any case.

This is mostly a technically, because nobody in their right mind would
attempt to specifically break such cases. But it's still undefined
behavior, and some libcs might be strict about this.
2015-01-12 14:43:52 +01:00
..
bstr.c Silence some Coverity warnings 2014-11-21 09:59:58 +01:00
bstr.h bstr: fix possible undefined behavior with length 0 strings 2015-01-12 14:43:52 +01:00
charset_conv.c sub: add detection via BOM 2014-07-22 23:40:48 +02:00
charset_conv.h Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
ctype.h Audit and replace all ctype.h uses 2014-07-01 23:11:08 +02:00
dispatch.c Fix gcc 4.7 warning about shadowing talloc_parent in mp_dispact_queue 2014-05-28 22:44:43 +02:00
dispatch.h dispatch: move into its own source file 2014-04-23 21:16:51 +02:00
json.c json: handle >\\"< fragments correctly 2014-10-21 02:59:30 +02:00
json.h lua: expose JSON parser 2014-10-19 05:51:37 +02:00
rendezvous.c Add Plan 9-style barriers 2014-07-26 20:29:48 +02:00
rendezvous.h Add Plan 9-style barriers 2014-07-26 20:29:48 +02:00
ring.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
ring.h