Closed
Bug 21314
Opened 25 years ago
Closed 25 years ago
[DOGFOOD]Random character(s) appearing at bottom of email messages
Categories
(SeaMonkey :: MailNews: Message Display, defect, P3)
SeaMonkey
MailNews: Message Display
Tracking
(Not tracked)
VERIFIED
FIXED
M12
People
(Reporter: lchiang, Assigned: bugzilla)
References
Details
(Whiteboard: [PDT+)
Attachments
(1 file)
(deleted),
message/rfc822
|
Details |
Random character(s) appearing at bottom of email messages
12/9/1999 Win32 build
1) Start Messenger
2) Login to IMAP
3) Select a message to view. I've seen this on the dogfood snack return message
and on my bugzilla and bugsplat notifications
4) Notice at the bottom of the message in the message pane that there is a
random character displayed.
Note: Paul Hangas sees this as well. Not sure what the cause of this is.
Updated•25 years ago
|
Assignee: phil → rhp
Comment 1•25 years ago
|
||
Rich, can you take a look?
Comment 3•25 years ago
|
||
norris, is this yours?
I see this on linux, and I get this assertion:
Null found at buffer[305] provided by netlib...
###!!! ASSERTION: possible embedded null in append(char*): 'kNotFound==len',
file nsString2.cpp, line 1127
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Target Milestone: M13
Comment 4•25 years ago
|
||
Sorry, but I tried to get this to happen over and over again without any luck.
They all seem to work on my machines including the test email you sent.
- rhp
Updated•25 years ago
|
Status: RESOLVED → REOPENED
Comment 5•25 years ago
|
||
re-opening. I see this on about 60% of the message I view on both my debug build
and the commercial release build from today.
apparently seth is seeing it too. Not sure what we need to do to get it to
happen on your machine but it definetly is there.
Comment 6•25 years ago
|
||
I would add that there doesn't seem to be a corelation about what messages
trigger the problem. I have it on regular short messages and not just bugsplat
or dogfood snack email.
Comment 7•25 years ago
|
||
When did you last build? I just pulled and rebuilt my entire tree?
- rhp
Updated•25 years ago
|
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: WORKSFORME → FIXED
Comment 8•25 years ago
|
||
Ok, after sleeping on this one, I know what the problem is here. I had a bug in
libmime where I was creating a string as follows:
nsString strline(linep);
but linep was always NULL terminated. Result = Garbage! And this would only
happen at the end of messages.
I checked in 2 fixes for this problem. They are the top two at the end of this
list:
http://cvs-mirror.mozilla.org/webtools/bonsai/showcheckins.cgi?person=rhp%25net
scape.com&treeid=SeaMonkey
I think with all of the problems that happened with CVS, these changes were
probably not part of the release build.
This would explain why I'm not seeing them.
- rhp
Comment 9•25 years ago
|
||
It's still early...the line:
but linep was always NULL terminated. Result = Garbage! And this would only
should read:
but linep wasn't always NULL terminated. Result = Garbage! And this would
only
Updated•25 years ago
|
Status: RESOLVED → REOPENED
Comment 10•25 years ago
|
||
Hey Rich, I hate to keep doing this to you but I'm still seeing the problem in
today's 12/10/99 win32 commercial release build. I believe this should have the
changes you were referring to in the bug report.
re-opening.
Reporter | ||
Comment 11•25 years ago
|
||
*** Bug 21387 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 12•25 years ago
|
||
Should be a dup of bug 21333
Comment 13•25 years ago
|
||
Comment 14•25 years ago
|
||
If you load the attached message, it will crash layout. Since we are having
this problem with corruption, etc... I thought I would post it.
- rhp
Updated•25 years ago
|
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → DUPLICATE
Comment 15•25 years ago
|
||
Ok, we have problems in layout with data getting munged. On Mac, you get double
lines and on Windows, it looks like we get garbage at the end.
JF really helped diagnose this so we are down to a layout problem with the new
approach of message body display.
- rhp
*** This bug has been marked as a duplicate of 21333 ***
Comment 16•25 years ago
|
||
Mark it Verified/dup.
Assignee | ||
Updated•25 years ago
|
Status: VERIFIED → REOPENED
Assignee | ||
Comment 17•25 years ago
|
||
Per comment of troy in bug 21333, I reopen this bug.
Assignee | ||
Updated•25 years ago
|
Assignee: rhp → ducarroz
Status: REOPENED → NEW
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Summary: Random character(s) appearing at bottom of email messages → [DOGFOOD]Random character(s) appearing at bottom of email messages
Assignee | ||
Comment 18•25 years ago
|
||
I found a problem with the way we compute the size of the decoded string in
nsDataChannel.cpp. That explain garbage characters we see often on all platform:
Index: nsDataChannel.cpp
===================================================================
RCS file: /cvsroot/mozilla/netwerk/protocol/data/src/nsDataChannel.cpp,v
retrieving revision 1.17
diff -r1.17 nsDataChannel.cpp
178,179d177
< char *decodedData = (char*)nsAllocator::Alloc((dataLen * 3)/4);
< if (!decodedData) return NS_ERROR_OUT_OF_MEMORY;
181c179,180
< decodedData = PL_Base64Decode(comma+1, dataLen, decodedData);
---
> char * decodedData = PL_Base64Decode(comma+1, dataLen, nsnull);
> if (!decodedData) return NS_ERROR_OUT_OF_MEMORY;
183c182
< dataToWrite->dataLen = (dataLen * 3)/4;
---
> dataToWrite->dataLen = PL_strlen(decodedData);
186c185
< rv = bufOutStream->WriteSegments(nsReadData, dataToWrite, (dataLen *
3)/4, &wrote);
---
> rv = bufOutStream->WriteSegments(nsReadData, dataToWrite,
dataToWrite->dataLen, &wrote);
Assignee | ||
Updated•25 years ago
|
Resolution: DUPLICATE → ---
Comment 19•25 years ago
|
||
Thanks for following up on this JF!
- rhp
Assignee | ||
Comment 20•25 years ago
|
||
No problem. I asked warren to review the fix, still waiting...
Assignee | ||
Updated•25 years ago
|
Whiteboard: I have the fix, waiting for code review
Assignee | ||
Updated•25 years ago
|
Whiteboard: I have the fix, waiting for code review → I have the fix that has been reviewed.
Assignee | ||
Comment 21•25 years ago
|
||
Warren reviewed the code, it's ok.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M13 → M12
Assignee | ||
Comment 22•25 years ago
|
||
shold be a PTD+. Set Target to M12
Comment 23•25 years ago
|
||
*** Bug 21563 has been marked as a duplicate of this bug. ***
Whiteboard: I have the fix that has been reviewed. → [PDT+]I have the fix that has been reviewed.
Comment 24•25 years ago
|
||
Putting on PDT+ radar.
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Whiteboard: [PDT+]I have the fix that has been reviewed. → [PDT+
Assignee | ||
Comment 25•25 years ago
|
||
Fixed and checked in
Comment 26•25 years ago
|
||
Changing qa assigned to pmock@netscape.com
Comment 27•25 years ago
|
||
OK using 12-14-11m12 commercial build on linux 6.0
OK using 12-14-08m12 commercial build on NT 4.0
OK using 12-14-08m12 commerical build on mac OS 8.5.1
Comment 28•25 years ago
|
||
*** Bug 21357 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•