Overview
| Artifact ID: | 8132ecf041b0d946dc9b5cbbb43b0289b66ff2cd |
|---|---|
| Ticket: | 6015221f59fd742aac833c7a4521de9745c8c868
binary scan segfaults when too much a is requested |
| User & Date: | sebres on 2017-05-03 09:49:27 |
Changes
- icomment:
Another way would be to redefine GetFormatSpec (and count as unsigned), like: GetFormatSpec( .. unsigned int *countPtr .. ) unsigned int count; and #define BINARY_ALL ((unsigned int)-1) ... So "overflow" will reach both special cases only by following ranges (accoring INT_MAX): binary scan x a[format %ld 0xffffffff]a r n; # equal BINARY_ALL binary scan x a[format %ld 0xfffffffe]a r n; # equal BINARY_UNSIGNED
- login: "sebres"
- mimetype: "text/plain"