mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-10 02:02:12 +00:00
Protect stack overflow with SetInterruptFunction (sigaltstack under the hood)
This commit is contained in:
parent
39b214b9bf
commit
8a31caa72f
@ -143,6 +143,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
sys::ChangeStdinToBinary();
|
||||
sys::ChangeStdoutToBinary();
|
||||
sys::SetInterruptFunction(nullptr);
|
||||
if (opt_index.size()) {
|
||||
SmallString<256> Root(opt_index);
|
||||
sys::fs::make_absolute(Root);
|
||||
|
Loading…
Reference in New Issue
Block a user