Open Bug 54048 Opened 24 years ago Updated 2 years ago

mailnews/mime/src/nsStreamConverter.cpp mucking with mime internals

Categories

(MailNews Core :: MIME, defect)

defect

Tracking

(Not tracked)

People

(Reporter: rhp, Unassigned)

Details

The following code:

        char *urlString;
        if (NS_SUCCEEDED(aURI->GetSpec(&urlString)))
        {
          if ((urlString) && (*urlString))
          {
            CRTFREEIF(*url_name);
            *url_name = nsCRT::strdup(urlString);
            if (!(*url_name))
              return NS_ERROR_OUT_OF_MEMORY;

            // rhp: Ugh, this is ugly...but it works.
            *fixup_pointer = (const char *)*url_name;
            CRTFREEIF(urlString);
          }
        }

Is mucking with libmime internals. This should really be calling into libmime 
to make this type of memory change.

- rhp
Status: NEW → ASSIGNED
Target Milestone: --- → Future
rhp:  thanks for not forgetting to log this bug.
reassigning to ducarroz
Assignee: rhp → ducarroz
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Target Milestone: Future → mozilla0.9.6
moving to 1.0
Target Milestone: mozilla0.9.6 → mozilla1.0
Target Milestone: mozilla1.0 → Future
Is this still valid, Jean-Francois?
OS: Windows NT → All
QA Contact: pmock → stephend
Hardware: PC → All
Product: MailNews → Core
Assignee: ducarroz → nobody
Status: ASSIGNED → NEW
QA Contact: stephend → mime
Product: Core → MailNews Core

This may be outside your wheelhouse - is this possibly still valid?

Flags: needinfo?(benc)
Priority: P3 → --

It's still in there:
https://searchfox.org/comm-central/search?q=rhp%3A+Ugh&case=true&regexp=false&path=mailnews%2Fmime%2Fsrc

I'd guess that it's not going to cause problems unless the libmime internals change.
I'm not familiar with any of the mime stuff, but if I ever find myself in there I'll make sure to have a go at it - it seems the least we can do after rhp was good enough to log it!

Flags: needinfo?(benc)

Thanks. So no real impact yet -> minor

Severity: normal → minor
Target Milestone: Future → ---
Severity: minor → S3
You need to log in before you can comment on or make changes to this bug.