1 http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2015-November/thread.html#24537
3 --- rpm-5.4.15.orig/rpmio/macro.c 2015-11-28 20:47:15.000000000 +0100
4 +++ rpm-5.4.15/rpmio/macro.c 2015-11-28 20:51:05.634724202 +0100
12 strncpy(buf, cmd, clen);
14 rc = expandU(mb, buf, bufn);
18 /* XXX delete trailing \r \n */
19 - while (iseol(mb->t[-1])) {
20 + while (mb->t > start && iseol(mb->t[-1])) {