Opened 8 years ago

Closed 8 years ago

#13137 closed bug (fixed)

[Patch] servers/app/decorator/TabDecorator.cpp: fix dereference of null pointer

Reported by: mt Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: Servers/app_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

In TabDecorator::_DistributeTabSize(), 'previousTab' could be NULL at line 468 [1], so I think we need add NULL check here.

[1] http://cgit.haiku-os.org/haiku/tree/src/servers/app/decorator/TabDecorator.cpp#n468

Attachments (2)

0041-TabDecorator.cpp-fix-dereference-of-null-pointer.patch (903 bytes ) - added by mt 8 years ago.
report-0e2c25.html (120.7 KB ) - added by mt 8 years ago.
Report by Clang Static Analyzer

Download all attachments as: .zip

Change History (4)

comment:1 by mt, 8 years ago

patch: 01

by mt, 8 years ago

Attachment: report-0e2c25.html added

Report by Clang Static Analyzer

comment:2 by pulkomandy, 8 years ago

Resolution: fixed
Status: newclosed

Applied in hrev50814. Thanks!

Note: See TracTickets for help on using tickets.