Project

General

Profile

Actions

Bug #14035

closed
AA RM

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

Bug #14035: WBoxLayout::itemAt() causes the application to crash.

Added by Ali Ali 11 months ago. Updated 5 months 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.

RM Updated by Romain Mardulyn 6 months ago Actions #2

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn 6 months ago Actions #3

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

RM Updated by Romain Mardulyn 6 months ago Actions #4

  • Target version set to 4.13.0

MV Updated by Matthias Van Ceulebroeck 6 months ago Actions #5

  • Assignee set to Matthias Van Ceulebroeck

RM Updated by Romain Mardulyn 6 months ago Actions #6

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

RM Updated by Romain Mardulyn 5 months ago Actions #7

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom