]> git.mdlowis.com Git - proto/labwc.git/commit
menu: reset parser state in `menu_finish()`
authortokyo4j <hrak1529@gmail.com>
Sun, 5 May 2024 09:41:10 +0000 (18:41 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 5 May 2024 10:49:39 +0000 (12:49 +0200)
commit95dc4ac4b5221c06113137aeeeb366c69627cb8e
tree2b5832be54cccd8083db01168a2eb6120a920361
parent8d4f29544018c9a7442f2ca2733c278ed87930ea
menu: reset parser state in `menu_finish()`

This fixes use-after-free in `fill_item()` on Reconfigure with
invalid `menu.xml` like below:

<openbox_menu>
  <menu id="root-menu">
    <item id="rofi-run" label="Run command">
      <action name="Execute" command="rofi-run" />
    </item>
  </menu>
</openbox_menu>
src/menu/menu.c