#11859: [Tracker] crashes in BView::GetLayout(BView) ------------------------------------+---------------------------- Reporter: diver | Owner: waddlesplash Type: bug | Status: assigned Priority: normal | Milestone: Unscheduled Component: Applications/Tracker | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ------------------------------------+---------------------------- Comment (by ttcoder): hrev48802, in the same timeframe as this ticket was created, likely introduced a regression (the `while (index-- > 0)` still uses the postfix decrement operator even though the index is now used for accessing items, it should be changed to a prefix operator otherwise at first loop iteration we access out-of-bounds and at last iteration we access item # 1 instead of # 0 -- humble apologies if I'm doing a stupid mistake in reading the code, it's been a long day again today). Any chance that crash might be related to that regression? The trace mentions layout. -- Ticket URL: <https://dev.haiku-os.org/ticket/11859#comment:4> Haiku <https://dev.haiku-os.org> Haiku - the operating system.