git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 68fa28f) | patch
Fix some possible low-memory failures in regexp compilation.
2015年8月12日 04:48:11 +0000 (00:48 -0400)
2015年8月12日 04:48:11 +0000 (00:48 -0400)
commit 8a0258c31808c514755e3bba03cb052084c4887c
Fix some possible low-memory failures in regexp compilation.

newnfa() failed to set the regex error state when malloc() fails.
Several places in regcomp.c failed to check for an error after calling
subre(). Each of these mistakes could lead to null-pointer-dereference
crashes in memory-starved backends.

Report and patch by Andreas Seltenreich. Back-patch to all branches.
src/backend/regex/regc_nfa.c diff | blob | blame | history
src/backend/regex/regcomp.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /