diff options
| author | Paul Eggert | 2011-06-18 09:02:03 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-18 09:02:03 -0700 |
| commit | 311d5d7cc63a9f2d4823066f82faeb4fb6203710 (patch) | |
| tree | 113cc2363ccbe9cd568c3be7fb36e411e69d754b /src/fns.c | |
| parent | f03dc6ef9f0c33552acea1713901de8c73f23b82 (diff) | |
| download | emacs-311d5d7cc63a9f2d4823066f82faeb4fb6203710.tar.gz emacs-311d5d7cc63a9f2d4823066f82faeb4fb6203710.zip | |
* fns.c: Don't assume string byte-length fits in 'int'.
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2169,7 +2169,7 @@ ARRAY is a vector, string, char-table, or bool-vector. */) | |||
| 2169 | unsigned char str[MAX_MULTIBYTE_LENGTH]; | 2169 | unsigned char str[MAX_MULTIBYTE_LENGTH]; |
| 2170 | int len = CHAR_STRING (charval, str); | 2170 | int len = CHAR_STRING (charval, str); |
| 2171 | EMACS_INT size_byte = SBYTES (array); | 2171 | EMACS_INT size_byte = SBYTES (array); |
| 2172 | int i; | 2172 | EMACS_INT i; |
| 2173 | 2173 | ||
| 2174 | if (INT_MULTIPLY_OVERFLOW (SCHARS (array), len) | 2174 | if (INT_MULTIPLY_OVERFLOW (SCHARS (array), len) |
| 2175 | || SCHARS (array) * len != size_byte) | 2175 | || SCHARS (array) * len != size_byte) |