]> git.mdlowis.com Git - proto/labwc.git/commit
config/rcxml.c: fix crash in <touch> section
authorJohan Malm <jgm323@gmail.com>
Sun, 8 Dec 2024 17:31:23 +0000 (17:31 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 8 Dec 2024 19:01:01 +0000 (20:01 +0100)
commit79232a61c1c77b79702a8258dc4fec6d87ec9cdf
treeaae360da77afb357385bde3535f57c0733e75f63
parent5e422a0bc2f2f8cb14d154f6891859ae330e9d75
config/rcxml.c: fix crash in <touch> section

...when options are specified as elements leading to hitting the assert()
in xstrdup().

Reproduce by using this rc.xml:

```
<?xml version="1.0"?>
<labwc_config>
  <touch>
    <deviceName>foo</deviceName>
    <mapToOutput>bar</mapToOutput>
  </touch>
</labwc_config>
```

It is likely that <touch> was only tested with options as attributes.
src/config/rcxml.c