projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52f6b2e
)
Fix a potential double-free in ecpg.
author
Michael Meskes
<
[email protected]
>
Fri, 10 Mar 2017 09:32:41 +0000
(10:32 +0100)
committer
Michael Meskes
<
[email protected]
>
Fri, 10 Mar 2017 09:52:01 +0000
(10:52 +0100)
src/interfaces/ecpg/preproc/pgc.l
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/preproc/pgc.l
b/src/interfaces/ecpg/preproc/pgc.l
index a0a2d4a003872a01f602a0ee0d72fe7946cb5491..33822c9c56fe28c6e93950a00ae1bfb49d9f38ae 100644
(file)
--- a/
src/interfaces/ecpg/preproc/pgc.l
+++ b/
src/interfaces/ecpg/preproc/pgc.l
@@
-541,6
+541,7
@@
cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.
{
addlit(yytext, yyleng);
free(dolqstart);
+ dolqstart = NULL;
BEGIN(SQL);
base_yylval.str = mm_strdup(literalbuf);
return DOLCONST;