Heap buffer overflow (WRITE) in 2.2.0-git-800-ga8f7d9fa
There is a 8 bytes Heap Buffer Overflow in the latest nightly when opening a particularly crafted avi file with ogg sound.
[#7](https://code.videolan.org/videolan/vlc/-/issues/7) 0x00007fffdff4b0eb in Ogg_SendOrQueueBlocks (p_demux=0x60280000f858, p_stream=0x60480004e680, p_block=0x60440003ed80) at demux/ogg.c:1058
1058 p_stream->p_prepcr_blocks[p_stream->i_prepcr_blocks++] = p_block;
Useful bt full:
[#7](https://code.videolan.org/videolan/vlc/-/issues/7) 0x00007fffdff4b0eb in Ogg_SendOrQueueBlocks (p_demux=0x60280000f858, p_stream=0x60480004e680, p_block=0x60440003ed80) at demux/ogg.c:1058
p_ogg = 0x60220002f200
__PRETTY_FUNCTION__ = "Ogg_SendOrQueueBlocks"
[#8](https://code.videolan.org/videolan/vlc/-/issues/8) 0x00007fffdff4e1ff in Ogg_DecodePacket (p_demux=0x60280000f858, p_stream=0x60480004e680, p_oggpacket=0x7fffe9676520) at demux/ogg.c:1412
p_block = 0x60440003ed80
b_selected = true
i_header_len = 1
[#9](https://code.videolan.org/videolan/vlc/-/issues/9) 0x00007fffdff45c93 in Demux (p_demux=0x60280000f858) at demux/ogg.c:488
p_stream = 0x60480004e680
i_pagestamp = 140737285092525
p_sys = 0x60220002f200
oggpacket = {
packet = 0x608200012c48 " E\217", '\377' <repeats 19 times>, "\360\333", '\377' <repeats 24 times>, "\373Y\033\063[\355k\377\177^\021\002\b\306H\324%tY\254e\375\017i\340B\a\257\306\\EH\230\242\202\177\277\256+!\030$\262\066h\320 %\330%\256\255\242+\302\006\005\331#Ys\211\201%\020\250,L\232zF\003\205\214\256\224)\364\226PҼ\215a8\231\030\026\177>\254s\241", bytes = 975, b_o_s = 0, e_o_s = 0, granulepos = 2, packetno = 3}
i_stream = 0
b_skipping = false
b_canseek = true
i_active_streams = 0
__PRETTY_FUNCTION__ = "Demux"
i_pcr_candidate = 1102416563
[#10](https://code.videolan.org/videolan/vlc/-/issues/10) 0x00007fffdff44052 in Open (p_this=0x60280000f858) at demux/ogg.c:245
p_demux = 0x60280000f858
p_sys = 0x60220002f200
p_peek = 0x7fffe7d22800 "OggS"
[#11](https://code.videolan.org/videolan/vlc/-/issues/11) 0x00007ffff3ea4bb9 in generic_start (func=0x7fffdff43ae8 <Open>, ap=0x7fffe9676730) at modules/modules.c:351
obj = 0x60280000f858
activate = 0x7fffdff43ae8 <Open>
[#12](https://code.videolan.org/videolan/vlc/-/issues/12) 0x00007ffff3ea3f97 in module_load (obj=0x60280000f858, m=0x601a0000ac80, init=0x7ffff3ea4aa6 <generic_start>, args=0x7fffe9676880) at modules/modules.c:185
ap = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7fffe96769f0, reg_save_area = 0x7fffe9676920}}
ret = 0
[#13](https://code.videolan.org/videolan/vlc/-/issues/13) 0x00007ffff3ea465a in vlc_module_load (obj=0x60280000f858, capability=0x7ffff3f52500 "demux", name=0x60040003e733 "", strict=true, probe=0x7ffff3ea4aa6 <generic_start>)
at modules/modules.c:277
cand = 0x601a0000ac80
ret = -1
i = 15
buf = "any\000\000\000\000\000\300\374\002\000&`\000\000\020\375\002\000&`\000\000\000\000\000\000\000\000\000"
slen = 3
shortcut = 0x7fffe96768c0 "any"
var = 0x0
mods = 0x60360002fd00
total = 66
module = 0x0
b_force_backup = false
args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fffe96769f0, reg_save_area = 0x7fffe9676920}}
__PRETTY_FUNCTION__ = "vlc_module_load"