[Rpm-maint] [rpm-software-management/rpm] Undefined pointer comparison in macro.c (#1602)

Michael Schroeder notifications at github.com
Fri Mar 26 11:01:39 UTC 2021


My suggested fix was wrong, it should be:
```
if (((!nb || *q != '\\') && !bc && !pc && !xc) || *(q+1) == '\0') {
```

Back to the pointer comparison: an even saner approach for this issue would be to let q point to the newline and not the char before the newline.

-- 
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/issues/1602#issuecomment-808122414
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210326/e67549e3/attachment.html>


More information about the Rpm-maint mailing list