[Rpm-maint] [rpm-software-management/rpm] rpm-4.14.0/tools/debugedit.c:2144]: (style) Array index 'lndx' is used before limits check. (#332)

dcb314 notifications at github.com
Fri Oct 13 07:30:01 UTC 2017

Source code is

                      while (r_offset > (dso->lines.table[lndx].old_idx
                                         + 4
                                         + dso->lines.table[lndx].unit_length)
                             && lndx < dso->lines.used)

Suggest limit check array index before use, not after.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20171013/7423cbef/attachment-0001.html>

More information about the Rpm-maint mailing list