Commit f5cf680
Fix filestream checking in output_json.cpp (#1063)
Summary:
The code is missing several checks for file stream validity, which causes the traced application to crash when it is unable to create a file.
Pull Request resolved: #1063
Reviewed By: aaronenyeshi
Differential Revision: D71902855
Pulled By: sraikund16
fbshipit-source-id: 1b139b4e154cc3cc017a46a705433bc0bd6eebdb1 parent 7cb6ac6 commit f5cf680
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| |||
556 | 560 | | |
557 | 561 | | |
558 | 562 | | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
559 | 566 | | |
560 | 567 | | |
561 | 568 | | |
562 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
563 | 573 | | |
564 | 574 | | |
565 | 575 | | |
| |||
0 commit comments