• Rémi Denis-Courmont's avatar
    vlc_bits: fix integer overflow in signed ExpGolomb code · 61eb0882
    Rémi Denis-Courmont authored
    When bs_read_ue() returned 2^32-1, computing (val + 1) as 'int'
    overflowed. With this patch, the conversion from unsigned to signed is
    performed after the division by two, so that the absolute value range
    is always within limits of the signed 32-bits integer type.
    
    Also use fast types since the function are meant to be inlined.
    61eb0882
Name
Last commit
Last update
..
vlc Loading commit data...
.gitignore Loading commit data...
vlc_access.h Loading commit data...
vlc_addons.h Loading commit data...
vlc_aout.h Loading commit data...
vlc_aout_volume.h Loading commit data...
vlc_arrays.h Loading commit data...
vlc_atomic.h Loading commit data...
vlc_avcodec.h Loading commit data...
vlc_bits.h Loading commit data...
vlc_block.h Loading commit data...
vlc_block_helper.h Loading commit data...
vlc_boxes.h Loading commit data...
vlc_charset.h Loading commit data...
vlc_codec.h Loading commit data...
vlc_codec_synchro.h Loading commit data...
vlc_codecs.h Loading commit data...
vlc_common.h Loading commit data...
vlc_config.h Loading commit data...
vlc_config_cat.h Loading commit data...
vlc_configuration.h Loading commit data...
vlc_cpu.h Loading commit data...
vlc_demux.h Loading commit data...
vlc_dialog.h Loading commit data...
vlc_epg.h Loading commit data...
vlc_es.h Loading commit data...
vlc_es_out.h Loading commit data...
vlc_events.h Loading commit data...
vlc_extensions.h Loading commit data...
vlc_filter.h Loading commit data...
vlc_fingerprinter.h Loading commit data...
vlc_fixups.h Loading commit data...
vlc_fourcc.h Loading commit data...
vlc_fs.h Loading commit data...
vlc_gcrypt.h Loading commit data...
vlc_http.h Loading commit data...
vlc_httpd.h Loading commit data...
vlc_image.h Loading commit data...
vlc_inhibit.h Loading commit data...
vlc_input.h Loading commit data...
vlc_input_item.h Loading commit data...
vlc_interface.h Loading commit data...
vlc_interrupt.h Loading commit data...
vlc_intf_strings.h Loading commit data...
vlc_iso_lang.h Loading commit data...
vlc_keys.h Loading commit data...
vlc_keystore.h Loading commit data...
vlc_main.h Loading commit data...
vlc_md5.h Loading commit data...
vlc_media_library.h Loading commit data...
vlc_memory.h Loading commit data...
vlc_memstream.h Loading commit data...
vlc_messages.h Loading commit data...
vlc_meta.h Loading commit data...
vlc_meta_fetcher.h Loading commit data...
vlc_mime.h Loading commit data...
vlc_modules.h Loading commit data...
vlc_mouse.h Loading commit data...
vlc_mtime.h Loading commit data...
vlc_network.h Loading commit data...
vlc_objects.h Loading commit data...
vlc_opengl.h Loading commit data...
vlc_pgpkey.h Loading commit data...
vlc_picture.h Loading commit data...
vlc_picture_fifo.h Loading commit data...
vlc_picture_pool.h Loading commit data...
vlc_playlist.h Loading commit data...
vlc_plugin.h Loading commit data...
vlc_probe.h Loading commit data...
vlc_rand.h Loading commit data...
vlc_renderer_discovery.h Loading commit data...
vlc_services_discovery.h Loading commit data...
vlc_sout.h Loading commit data...
vlc_spu.h Loading commit data...
vlc_stream.h Loading commit data...
vlc_strings.h Loading commit data...
vlc_subpicture.h Loading commit data...
vlc_text_style.h Loading commit data...
vlc_threads.h Loading commit data...
vlc_timestamp_helper.h Loading commit data...
vlc_tls.h Loading commit data...
vlc_update.h Loading commit data...
vlc_url.h Loading commit data...
vlc_variables.h Loading commit data...
vlc_video_splitter.h Loading commit data...
vlc_vlm.h Loading commit data...
vlc_vod.h Loading commit data...
vlc_vout.h Loading commit data...
vlc_vout_display.h Loading commit data...
vlc_vout_osd.h Loading commit data...
vlc_vout_window.h Loading commit data...
vlc_vout_wrapper.h Loading commit data...
vlc_xlib.h Loading commit data...
vlc_xml.h Loading commit data...