Project

General

Profile

Actions

Bug #14035

closed

WBoxLayout::itemAt() causes the application to crash.

Added by Ali Ali 7 months ago. Updated 15 days ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
10/11/2025
Due date:
% Done:

0%

Estimated time:

Description

Thanks for your great work

In the WBoxLayout::itemAt() document we have:

If there is no item at the index, the value 0 is returned.

But if WBoxLayout::itemAt(index) is called with an index out of range, the program crashes.

I checked WBoxLayout.C and saw that the vector::[]operator is used to access layout items without any bounds checking.

Actions #2

Updated by Romain Mardulyn about 1 month ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
Actions #3

Updated by Romain Mardulyn about 1 month ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions #4

Updated by Romain Mardulyn about 1 month ago

  • Target version set to 4.13.0
Actions #5

Updated by Matthias Van Ceulebroeck 29 days ago

  • Assignee set to Matthias Van Ceulebroeck
Actions #6

Updated by Romain Mardulyn 27 days ago

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
Actions #7

Updated by Romain Mardulyn 15 days ago

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: Atom PDF