Skip to content

Instantly share code, notes, and snippets.

/73208.diff Secret
Created Oct 3, 2016

Embed
What would you like to do?
Patch for 73208
commit ef801b9bf96fb46b0418772a11a9b38f52cd93b4
Author: Stanislav Malyshev <stas@php.net>
Date: Mon Oct 3 00:12:14 2016 -0700
Fix bug #73208 - another missing length check
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 8fe9de9..564473b 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -2523,7 +2523,7 @@ PHP_FUNCTION(imap_8bit)
RETURN_FALSE;
}
- RETVAL_STRINGL(decode, newlength, 1);
+ RETVAL_STRINGL_CHECK(decode, newlength, 1);
fs_give((void**) &decode);
}
/* }}} */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.