lvc / abi-compliance-checker

A tool for checking backward API/ABI compatibility of a C/C++ library
https://lvc.github.io/abi-compliance-checker/
GNU Lesser General Public License v2.1
621 stars 76 forks source link

Fix XML report generation when changed type contains '&&' #106

Open anderco opened 4 years ago

anderco commented 4 years ago

The function xmlSpecChars in modules/Internal/Basic.pm would not correctly replace two successive ampersand signs. The matching group (^[#]|\Z) would consume the second '&'. Fix the issue by using a negative assertion to lookahead in the string without consuming the matched charcters.