diff options
| author | Paul Eggert | 2013-12-12 11:23:25 -0800 |
|---|---|---|
| committer | Paul Eggert | 2013-12-12 11:23:25 -0800 |
| commit | 4618713ae48aac51c6f1a2474cc981f32c2bbede (patch) | |
| tree | 11ede5202ee196ab2fb658a6c5a4bcffc4dc413b /src/alloc.c | |
| parent | 01633a17e74e638f31ec71c3587481f0084574f2 (diff) | |
| download | emacs-4618713ae48aac51c6f1a2474cc981f32c2bbede.tar.gz emacs-4618713ae48aac51c6f1a2474cc981f32c2bbede.zip | |
Avoid undefined behavior with huge regexp interval counts.
* 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.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions