Three recent PRs (67527, 67535, 67536) have reported issues latent issues in 
libgfortran, where C code relies on undefined behavior: (i) large left shift of 
signed value, and (ii) calls to memcpy(dst,src,len) where src == NULL and len 
== 0.

After confirming that all three issues are indeed undefined behavior, I 
committed the attached patch to trunk to fix them.
Regtested on x86_64-apple-darwin15.
Issues are latent, so I don’t think a backport is in order.

Cheers,
FX


Attachment: lib.diff
Description: Binary data

Reply via email to