cppcheck: haar.cpp, buffer overflow in sprintf (Bug #1661)


Added by Nghia Ho about 13 years ago. Updated almost 13 years ago.


Status:Cancelled Start date:2012-03-08
Priority:Normal Due date:
Assignee:Marina Kolpakova % Done:

0%

Category:objdetect
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

There is a buffer overflow at line 248 in haar.cpp,

sprintf( errorstr, "rectangle #%d of the classifier #%d of " 
"the stage classifier #%d is not inside "
"the reference (original) cascade window", k, j, i );

errorstr is declared as char errorstr100, the sprintf text exceeds 100 characters


Related issues

duplicates Bug #1389: Buffer overrun in haar.cpp Done

Associated revisions

Revision 1e556e08
Added by Roman Donchenko over 11 years ago

Merge pull request #1661 from look4pritam:my-branch

History

Updated by Marina Kolpakova almost 13 years ago

Duplicate of #1389.

  • Status changed from Open to Cancelled
  • Target version set to 2.4.0
  • Assignee set to Marina Kolpakova

Also available in: Atom PDF