tools: Fix potential null-deref with result of strtok_r
authorMaks Mishin <maks.mishinfz@gmail.com>
Sun, 9 Feb 2025 15:46:21 +0000 (18:46 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 18 Feb 2025 22:32:24 +0000 (16:32 -0600)
commit320ba79911511d7f29d3092fb4cc4f5b7a03d7da
treee74ab56fdd942990ee3bd7e28503cce8657de712
parent87eaf7781a3cc116c2fb04eac2471ac33f538291
tools: Fix potential null-deref with result of strtok_r

Return value of a function 'strtok_r' is dereferenced at kwbimage.c:1655
without checking for NULL, but it is usually checked for this function.

Signed-off-by: Maks Mishin <maks.mishinFZ@gmail.com>
tools/kwbimage.c