Re: [OpenWrt-Devel] [PATCH] swconfig: List available switches
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. [snip] > + while (dev) { > + struct switch_dev *next = dev->next; > + print_dev_summary(dev); > + swlib_free(dev); > + dev = dev->next; This looks like a user-after-free. Given that you alloca
[OpenWrt-Devel] [PATCH] swconfig: List available switches
List available switches. As part of the usage message or when the switch name was mistyped, show the user a summary of switch devices available in the system. Signed-off-by: Tobias Diedrich Index: package/swconfig/src/cli.c === --