Opened 11 years ago
Closed 11 years ago
#9881 closed bug (fixed)
[Mail kit] MailAttachment.cpp: Size argument is greater than the length of the destination buffer
Reported by: | mt | Owned by: | czeidler |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Mail Kit | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
In BAttributedMailAttachment::SaveToDisk(), array "name" size (255) is small for strncpy(text, fileName, B_FILE_NAME_LENGTH) in BSimpleMailAttachment::FileName(). Please see attached report.
Attachments (2)
Change History (4)
by , 11 years ago
Attachment: | 0011-Fix-size-argument-is-greater-than-the-length-of-the-.patch added |
---|
comment:1 by , 11 years ago
patch: | 0 → 1 |
---|
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the patch! Applied hrev46347.
On the haiku-development list, Axel pointed out that the "+1" is not needed; B_FILE_NAME_LENGTH already includes the terminating null byte.
Note:
See TracTickets
for help on using tickets.
Patch