libavc/decoder
Martin Storsjo 85a43d2fcf Fix string handling for generating version strings
Don't do concatenation with strncat; the length parameter in strncat
is only for how many chars to append at most, not for the full output
buffer size. To safely use strncat, one would have to do
strncat(buf, str, sizeof(buf) - strlen(buf)).

By using snprintf, we guarantee that the buffer is null terminated, and
we don't need to use strnlen at all.

(If compatibility with older MSVC versions that lack snprintf, one
can use _snprintf instead and manually add the null termination.)

Change-Id: I1c2322c7a406ddd5e6551a96c460da60deeffda1
2015-06-25 08:25:52 -07:00
..
arm fix file permissions 2015-05-05 17:51:34 +00:00
mips fix file permissions 2015-05-05 17:51:34 +00:00
x86 fix file permissions 2015-05-05 17:51:34 +00:00
ih264d.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_api.c Fix string handling for generating version strings 2015-06-25 08:25:52 -07:00
ih264d_bitstrm.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_bitstrm.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_cabac.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_cabac.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_cabac_init_tables.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_compute_bs.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_deblocking.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_deblocking.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_debug.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_defs.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_dpb_manager.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_dpb_mgr.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_error_handler.h Improved error resilience in decoder 2015-06-25 08:25:44 -07:00
ih264d_format_conv.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_format_conv.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_function_selector.h Remove an unused and unnecessary function prototype and associated define 2015-06-25 08:25:51 -07:00
ih264d_function_selector_generic.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_inter_pred.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_inter_pred.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_mb_utils.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_mb_utils.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_mem_request.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_mvpred.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_mvpred.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_nal.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_nal.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_bslice.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_parse_cabac.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_cabac.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_cavlc.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_cavlc.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_headers.c Improved error resilience in decoder 2015-06-25 08:25:44 -07:00
ih264d_parse_headers.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_islice.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_parse_islice.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_mb_header.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_mb_header.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_parse_pslice.c Improved error resilience in decoder 2015-06-25 08:25:44 -07:00
ih264d_parse_slice.c Improved error resilience in decoder 2015-06-25 08:25:44 -07:00
ih264d_parse_slice.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_process_bslice.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_process_bslice.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_process_intra_mb.c Improved error resilience in decoder 2015-06-25 08:25:44 -07:00
ih264d_process_intra_mb.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_process_pslice.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_process_pslice.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_quant_scaling.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_quant_scaling.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_sei.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_sei.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_structs.h Improved error resilience in decoder 2015-06-25 08:25:44 -07:00
ih264d_tables.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_tables.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_thread_compute_bs.c Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_thread_compute_bs.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_thread_parse_decode.c Remove unnecessary calls to ithread_exit 2015-06-25 08:25:44 -07:00
ih264d_thread_parse_decode.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00
ih264d_transfer_address.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_utils.c Added support for level 52 2015-06-25 08:25:42 -07:00
ih264d_utils.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_vui.c fix file permissions 2015-05-05 17:51:34 +00:00
ih264d_vui.h fix file permissions 2015-05-05 17:51:34 +00:00
iv.h fix file permissions 2015-05-05 17:51:34 +00:00
ivd.h Multithreading changes and better error resilience 2015-06-03 07:27:36 -07:00