[gnutls-devel] GnuTLS | index should check before use (!1771)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Wed Oct 18 04:23:37 CEST 2023
Daiki Ueno commented on a discussion on src/srptool.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1771#note_1607983566
> while (fgets(line, sizeof(line), fp) != NULL) {
> /* move to first ':' */
> i = 0;
> - while ((line[i] != ':') && (line[i] != '\0') &&
> - (i < sizeof(line))) {
> + while ((i < sizeof(line)) && (line[i] != ':') && (line[i] != '\0')) {
> i++;
> }
Done this in !1782.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1771#note_1607983566
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20231018/4970d654/attachment-0001.html>
More information about the Gnutls-devel
mailing list