• Paul Eggert's avatar
    Avoid undefined behavior with huge regexp interval counts. · 4618713a
    Paul Eggert authored
    * regex.c (GET_INTERVAL_COUNT): Rename from 'GET_UNSIGNED_NUMBER',
    since it's now specialized to interval counts.	All uses changed.
    Do not assume wrapraound on signed integer overflow.
    (regex_compile): Simplify based on the above changes.
    4618713a
regex.c 189 KB