[Rpm-maint] [rpm-software-management/rpm] Avoid incrementing a pointer past the end (#1489)

Demi Marie Obenour notifications at github.com
Tue Feb 16 18:20:53 UTC 2021


@DemiMarie commented on this pull request.



> @@ -394,10 +394,16 @@ static inline int strtaglen(const char *str, rpm_count_t c, const char *end)
     const char *s;
 
     if (end) {
-	if (str >= end)
+	if (start >= end)

Yes and no.  It wasn’t redundant before #1496, but it definitely is now.  Deleted.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1489#discussion_r577039034
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210216/935e0887/attachment.html>


More information about the Rpm-maint mailing list