Opened 7 years ago

Closed 7 years ago

#13825 closed bug (invalid)

The 'ctx' pointer was utilized before it was verified against nullptr in libntfs/mft.c.

Reported by: owenca Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Add-Ons Version: R1/Development
Keywords: ntfs Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by mmu_man)

This is reported by PVS http://pulkomandy.github.io (# 2477 and # 2479).

Attachments (2)

Change History (7)

comment:1 by owenca, 7 years ago

patch: 01

comment:2 by mmu_man, 7 years ago

Description: modified (diff)

comment:3 by mmu_man, 7 years ago

Actually, it appears that those are false-positive, that is, the use of the pointer only happens when a condition (mb_prebuilt is true) is set that doesn't happen until after the pointer is initialized. PVS just didn't get it correctly.

Version 0, edited 7 years ago by mmu_man (next)

comment:4 by pulkomandy, 7 years ago

patch: 10

comment:5 by pulkomandy, 7 years ago

patch: 0
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.