Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#9551 closed bug (invalid)

Defect CID 991608: Use of uninitialized pointer

Reported by: kallisti5 Owned by: axeld
Priority: critical Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: CID991608 Cc:
Blocked By: #9552 Blocking:
Platform: All

Description (last modified by kallisti5)

http://cgit.haiku-os.org/haiku/tree/src/system/kernel/fs/rootfs.cpp#n379

Line 379, we use vnode which is uninitialized at the time of use.

Change History (4)

comment:1 by kallisti5, 12 years ago

Description: modified (diff)

comment:2 by kallisti5, 12 years ago

Summary: Defect: Use of uninitialized pointerDefect CID 991608: Use of uninitialized pointer

comment:3 by axeld, 12 years ago

Resolution: invalid
Status: newclosed

Please don't open bug reports for CIDs, that's a bit exaggerated.

comment:4 by bonefish, 12 years ago

Blocked By: 9552 added

To add some details to Axel's terse comment: The value of vnode is not relevant in this case. The used construct is just a replacement for offsetof() for which gcc would issue a warning. It's very ugly, though. I created #9552 for the best way to solve it.

Note: See TracTickets for help on using tickets.