Skip to content

Commit 99b242a

Browse files
committed
Fixed bug #73418 Integer Overflow in "_php_imap_mail" leads to crash
1 parent 863d37e commit 99b242a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/imap/php_imap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3900,7 +3900,7 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char *
39003900
char *tsm_errmsg = NULL;
39013901
ADDRESS *addr;
39023902
char *bufferTo = NULL, *bufferCc = NULL, *bufferBcc = NULL, *bufferHeader = NULL;
3903-
int offset, bufferLen = 0;
3903+
size_t offset, bufferLen = 0;
39043904
size_t bt_len;
39053905

39063906
if (headers) {

0 commit comments

Comments
 (0)