]> Kevux Git Server - fll/commit
Security: Buffer overflow.
authorKevin Day <thekevinday@gmail.com>
Mon, 20 Dec 2021 03:57:36 +0000 (21:57 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 20 Dec 2021 03:59:35 +0000 (21:59 -0600)
commit647417282a9c2cd0f06b9e571cb3410f49ba25a0
tree602258f2b57cd80c9df83f9e452ada8da820a5c6
parent018a4a645de880359c8b23ff2905c8844adcd67d
Security: Buffer overflow.

The inner loop is stopping when string[i] is NULL.
Which is correct.

However, this then continues to the outer loop, resulting in ++i.
This results in an buffer overflow.

Check to see if at NULL before continuing, otherwise break.

Perform minor syntax cleanups.
level_0/f_file/c/file.c