If typing into the console, sometimes not only one char is added but multiple in a strange combination, just like w => w°ö?k. Solve this issue.
Analysis:
This issue only occurs in an application, which was compiled using full optimization. The issue could be tracked down to an unitialized buffer in wxTerm::OnChar():
unsigned char
buf[10];
Change this to
// char buffer has to be initialized. Otherwise it might contain unnecessary characters
char buf[] = {"\0\0\0\0\0\0\0\0\0\0"};
Implementation:
The fix was implemented as proposed by the analysis. Implementation tests were passed successfully.
Documentation:
Not needed - Bug fix.
Tests:
Fix was tested in production tests. No deviations detected (it only occured in some cases on some computer architectures and if fully otpimized). Bug fix implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Diff: