diff options
| author | Paul Eggert | 2025-07-12 13:56:55 -0700 |
|---|---|---|
| committer | Paul Eggert | 2025-07-13 21:09:39 -0700 |
| commit | e6c684797361aec99b1b9eef139bab92679355ec (patch) | |
| tree | 551a0a72c3d5b6a78930b5112f22d4b38d113c21 /src | |
| parent | 535ab2d116c259820e18380336913abc57ac0376 (diff) | |
| download | emacs-e6c684797361aec99b1b9eef139bab92679355ec.tar.gz emacs-e6c684797361aec99b1b9eef139bab92679355ec.zip | |
Remove ineffective overflow check
* src/fileio.c (Finsert_file_contents): Remove check for overflow.
The overflow is not possible, and the check was incorrectly
written and would not have caught it anyway.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c index ae6fbb7dc7a..b639be1493b 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4873,10 +4873,7 @@ by calling `format-decode', which see. */) | |||
| 4873 | break; | 4873 | break; |
| 4874 | } | 4874 | } |
| 4875 | 4875 | ||
| 4876 | if (!integer_to_intmax (nbytes, &number) | 4876 | integer_to_intmax (nbytes, &number); |
| 4877 | && number > PTRDIFF_MAX) | ||
| 4878 | buffer_overflow (); | ||
| 4879 | |||
| 4880 | this = number; | 4877 | this = number; |
| 4881 | } | 4878 | } |
| 4882 | else | 4879 | else |