andrew-d / andrew-d/rough-auditing-tool-for-security

Segmentation fault when parse static buffer

未關閉
#7 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
auto-migrated Priority-Medium Type-Defect
主要語言
C
星號
91
分支
29
PR 合併指標
30 天內沒有已合併 PR

描述

```
What steps will reproduce the problem?
1. write "static char gParseBuffer [MAX_SIZE];" in a file test.cpp
2. run rats -w3 --xml test.cpp

What is the expected output? What do you see instead?
Expected to see the xml report of the Low warning: "fixed size global buffer".
Got a segmentation fault just after Low

$rats -w3 --xml test.cpp

33
46
62
334
55

test.cpp

Low
Segmentation fault (core dumped)

What version of the product are you using? On what operating system?
RATS v2.3 on FreeBSD 10.0 amd64

If the report is exported to an xml file, this file end unexpectedly. This
cause trouble to other tool exploiting this report.
```

Original issue reported on code.google.com by `cafedjia...@gmail.com` on 23 Jan 2014 at 1:35

Attachments:
- [test.cpp](https://storage.googleapis.com/google-code-attachments/rough-auditing-tool-for-security/issue-7/comment-0/test.cpp)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。