Opened 11 years ago
Closed 11 years ago
#9871 closed bug (fixed)
[btrfs] Chunk.cpp: Null pointer argument in call to memory copy function
Reported by: | mt | Owned by: | korli |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | File Systems/Btrfs | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
In Chunk::Chunk(), if fChunk is NULL, then memcpy() has Null pointer argument. Please see attached report.
Attachments (3)
Change History (7)
by , 11 years ago
Attachment: | 0005-Chunk-Chunk-Fix-Null-pointer-argument-in-call-to-mem.patch added |
---|
comment:1 by , 11 years ago
patch: | 0 → 1 |
---|
comment:2 by , 11 years ago
Thanks for the report and patch! Though it's usually more readable to return early once fInitStatus is set. Could you take this into account in your patch and attach it?
by , 11 years ago
Attachment: | 0005-Chunk-Chunk-Fix-Null-pointer-argument-in-call-to-mem.2.patch added |
---|
New patch
Note:
See TracTickets
for help on using tickets.
Patch