This is an archive of the discontinued LLVM Phabricator instance.

[Support] - Fix possible crash in match() of llvm::Regex.
ClosedPublic

Authored by grimar on Sep 1 2016, 3:45 AM.

Details

Summary

Crash was possible if match() method
was called on object that was moved or object
created with empty constructor.

Testcases updated.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 69977.Sep 1 2016, 3:45 AM
grimar retitled this revision from to [Support] - Fix possible crash in match() of llvm::Regex..
grimar updated this object.
grimar added reviewers: dblaikie, ruiu, davide, rafael.
grimar added subscribers: llvm-commits, grimar.
grimar added inline comments.
lib/Support/Regex.cpp
41 ↗(On Diff #69977)

I moved it here because need to assign REG_BATPAT and dont want include "regex_impl.h" to .h file.

dblaikie accepted this revision.Sep 1 2016, 3:20 PM
dblaikie edited edge metadata.
This revision is now accepted and ready to land.Sep 1 2016, 3:20 PM
This revision was automatically updated to reflect the committed changes.