[OpenWrt-Devel] [PATCH] rpcd: uci: fix segfault and double free on set method

Jo-Philipp Wich jo at mein.io
Tue Oct 29 03:25:31 EDT 2019


Hi Daniel, Yousong,

thanks for the reporting issue and the proposed patch. I'd prefer to go
with a minimal variant which merely zeroes the flags to avoid touching
too much code.

Imho the current uci_set() behavior of freeing uci_ptr members without
zeroing them is a bug that should be corrected as well.

~ Jo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20191029/dfb033b3/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list