Fix #14305 Wrong buffer sizes computed by valueFlowDynamicBufferSize()#8006
Fix #14305 Wrong buffer sizes computed by valueFlowDynamicBufferSize()#8006chrchr-github merged 18 commits intocppcheck-opensource:mainfrom
Conversation
danmar
left a comment
There was a problem hiding this comment.
I do not see why we want to have different results from ValueType::typeSize and ValueFlow::getSizeOf. Can you explain it? Did you consider refactoring so that ValueType::typeSize calls ValueFlow::getSizeOf or vice versa?
Yes, having those two functions is unfortunate, and they should be merged. |
|
BTW, is daca down? I haven't been able to connect to http://cppcheck1.osuosl.org:8000/ for a while. |
The server did not start up because the package index was corrupted. It is fixed now. |
Clients process data again. Had been broken for over a week. |
| "}"; | ||
| values = tokenValues(code, "( D )"); | ||
| ASSERT_EQUALS(1U, values.size()); | ||
| TODO_ASSERT_EQUALS(2 * settings.platform.sizeof_pointer, 1, values.back().intvalue); |
There was a problem hiding this comment.
This was already incorrect before.
|



No description provided.