Line 249 of tensordec-boundingbox.c has the following SVACE warning:
Warning Message
Possible integer underflow: left operand is tainted. An integer underflow may occur due to arithmetic operation (unsigned subtraction) between values { [0,
1073741823] } and '1', where the first value comes from the expression 'strlen(line)'
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
GList *labels = NULL, *cursor;
while ((read = getline (&line, &len, fp)) != -1) {
- if (line) {
+ if (line && strlen (line) >= 1) {
if (line[strlen (line) - 1] == '\n') {
line[strlen (line) - 1] = '\0';
}