diff options
| author | Pierre Joye <pajoye@php.net> | 2011-07-28 10:34:16 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2011-07-28 10:34:16 +0000 |
| commit | 8535adfb3106acec08f98c1969c1e12bdd2563ed (patch) | |
| tree | 19a7946ce6d8167a843522a5404e91a5e505e012 | |
| parent | 42c4b86c886a021abcf47e0144454b6e04d504ff (diff) | |
| download | php-git-8535adfb3106acec08f98c1969c1e12bdd2563ed.tar.gz | |
- Fix #55301 (com_dotnet part) check if malloc succeded
| -rw-r--r-- | ext/com_dotnet/com_dotnet.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/com_dotnet/com_dotnet.c b/ext/com_dotnet/com_dotnet.c index 0cb30b04a9..acbd3979a8 100644 --- a/ext/com_dotnet/com_dotnet.c +++ b/ext/com_dotnet/com_dotnet.c @@ -129,6 +129,9 @@ static HRESULT dotnet_init(char **p_where TSRMLS_DC) char *where = ""; stuff = malloc(sizeof(*stuff)); + if (!stuff) { + return S_FALSE; + } memset(stuff, 0, sizeof(*stuff)); where = "CoCreateInstance"; |
