Skip to content

cppcheck: fix some reports#1851

Closed
serval2412 wants to merge 1 commit intonotepad-plus-plus:masterfrom
serval2412:master
Closed

cppcheck: fix some reports#1851
serval2412 wants to merge 1 commit intonotepad-plus-plus:masterfrom
serval2412:master

Conversation

@serval2412
Copy link
Copy Markdown
Contributor

[PowerEditor/src/Parameters.cpp:2581]: (warning) Array index -1 is out of bounds. Otherwise there is useless condition at line 2568.
[PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp:3079]: (style) Unused variable: newline
[PowerEditor/src/WinControls/Grid/BabyGrid.cpp:166]: (style) Array index 'j' is used before limits check.
[PowerEditor/src/WinControls/Grid/BabyGrid.cpp:171]: (style) Array index 'j' is used before limits check.
[scintilla/lexers/LexUser.cxx:1128]: (error) Array 'maskMapper[15]' accessed at index 15, which is out of bounds.

[PowerEditor/src/Parameters.cpp:2581]: (warning) Array index -1 is out of bounds. Otherwise there is useless condition at line 2568.
[PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp:3079]: (style) Unused variable: newline
[PowerEditor/src/WinControls/Grid/BabyGrid.cpp:166]: (style) Array index 'j' is used before limits check.
[PowerEditor/src/WinControls/Grid/BabyGrid.cpp:171]: (style) Array index 'j' is used before limits check.
[scintilla/lexers/LexUser.cxx:1128]: (error) Array 'maskMapper[15]' accessed at index 15, which is out of bounds.
@serval2412
Copy link
Copy Markdown
Contributor Author

I also noticed this [PowerEditor/src/tools/NppShell/src/NppShell.cpp:835]: (warning) The 2nd memset() argument '16777215' doesn't fit into an 'unsigned char' but don't know how to fix it

@donho donho added the accepted label May 14, 2016
@donho donho added this to the 6.x milestone May 14, 2016
@donho donho self-assigned this May 14, 2016
@donho donho closed this in 7b596fa May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants