1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Ticket #1548 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

False positive: array index out of bounds in for-loop

Reported by: hyd_danmar Owned by: aggro80
Priority: Milestone: 1.43
Component: False positive Keywords:
Cc:

Description

Example code:

void foo()
{
    char val[5];
    for (unsigned int i = 3; i < 5; --i)
        val[i+1] = val[i];
}

False positive:

[a.cpp:5]: (error) Array 'val[5]' index 5 out of bounds

Change History

Changed 3 years ago by aggro80

  • owner changed from noone to aggro80
  • status changed from new to assigned

Changed 3 years ago by aggro80

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.