d3dxof: Avoid undefined behavior in parse_object_parts.

Thomas Faber thomas.faber at reactos.org
Sun Nov 22 14:44:00 CST 2015


MSVC compiles
  buf->pxo = buf->pxo->children[buf->pxo->nb_children] = &buf->pxo_tab[buf->pxo->root->nb_subobjects++];
to:
  buf->pxo = buf->pxo->children[buf->pxo->nb_children] = &buf->pxo_tab[buf->pxo->root->nb_subobjects];
  buf->pxo->root->nb_subobjects++
which means it will try to use the new pxo, whose root pointer
is uninitialized.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-d3dxof-Avoid-undefined-behavior-in-parse_object_part.patch
Type: text/x-diff
Size: 938 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20151122/67b6930e/attachment.patch>


More information about the wine-patches mailing list