Home
last modified time | relevance | path

Searched hist:be3dd0e67482cddc67c80ea1d4a0ed5cb6ad7733 (Results 1 – 1 of 1) sorted by relevance

/openbmc/debug-trigger/
H A Dmain.cdiff be3dd0e67482cddc67c80ea1d4a0ed5cb6ad7733 Thu Dec 21 23:18:32 CST 2023 Andrew Jeffery <andrew@aj.id.au> main: Address strncat() overflow warning

```
FAILED: debug-trigger.p/main.c.o
ccache cc -Idebug-trigger.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=gnu18 -O0 -g -MD -MQ debug-trigger.p/main.c.o -MF debug-trigger.p/main.c.o.d -o debug-trigger.p/main.c.o -c ../main.c
../main.c: In function ‘main’:
../main.c:549:17: error: ‘strncat’ specified bound 4096 equals destination size [-Werror=stringop-overflow=]
549 | strncat(devnode, devid, sizeof(devnode));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
```

Change-Id: Id9abfb900ad7601acd595febf00eb92c5a56d3af
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>