Skip to content

Commit de64358

Browse files
committed
Fixed bug #73418 Integer Overflow in "_php_imap_mail" leads to crash
(cherry picked from commit 99b242a)
1 parent 5693474 commit de64358

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
@@ -3934,7 +3934,7 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char *
39343934
char *tsm_errmsg = NULL;
39353935
ADDRESS *addr;
39363936
char *bufferTo = NULL, *bufferCc = NULL, *bufferBcc = NULL, *bufferHeader = NULL;
3937-
int offset, bufferLen = 0;
3937+
size_t offset, bufferLen = 0;
39383938
size_t bt_len;
39393939

39403940
if (headers) {

0 commit comments

Comments
 (0)