Opened 6 years ago

Closed 6 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, 6 years ago

patch: 01

comment:2 by mmu_man, 6 years ago

Description: modified (diff)

comment:3 by mmu_man, 6 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.

We should probably forward those to Tuxera anyway. And update NTFS-3g, our version is from 2014.

Last edited 6 years ago by mmu_man (previous) (diff)

comment:4 by pulkomandy, 6 years ago

patch: 10

comment:5 by pulkomandy, 6 years ago

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