We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19850ec commit ddfff11Copy full SHA for ddfff11
ibm_db2.c
@@ -7221,7 +7221,7 @@ PHP_FUNCTION(db2_escape_string)
7221
}
7222
7223
/* allocate twice the source length first (worst case) */
7224
- new_str = (char*)malloc(((length*2)+1)*sizeof(char));
+ new_str = (char*)emalloc(((length*2)+1)*sizeof(char));
7225
7226
source = str;
7227
end = source + length;
0 commit comments