[vlc-devel] [RFC] demux/xa: Open: fix xa-header parsing

Rémi Denis-Courmont remi at remlab.net
Mon Feb 20 17:45:34 CET 2017


Le maanantaina 20. helmikuuta 2017, 15.06.59 EET Filip Roséen a écrit :
> If a compiler introduce padding between the members of struct
> xa_header, the previous way of interpreting the incoming stream will
> yield unexpected behavior.

I do not see how a comforming C compiler could introduce padding anywhere 
except at the end of the structure - since all types are aligned on their 
natural boundary.

(So yes, there is a bug, but the fix should be much more trivial.)

-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list