Skip to content

Instantly share code, notes, and snippets.

/73208.diff Secret

Created October 3, 2016 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d65c900a4e4e46c5a7ca4e806dfc9e94 to your computer and use it in GitHub Desktop.
Save anonymous/d65c900a4e4e46c5a7ca4e806dfc9e94 to your computer and use it in GitHub Desktop.
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