#23 Wrong delete is used in class HTML

resolved
closed-fixed
htdig (103)
5
2001-03-12
2001-03-05
riv
No

Htdig Version: 3.1.5
OS: Solaris 2.8

Here's a small bug in the HTML class used by the htdig
program to parse html files.
The wrong type of "delete" is used ("delete" instead
of "delete[]") in method "parse" of the HTML class:

---------< CODE SNIPPET>--------------
void HTML::parse(Retriever &retriever, URL &baseURL)
{
.
.
unsigned char *text = (unsigned char *) new
char[contents->length()+1];
.
.
.
// FIXED: this was "delete text"
// which should not be used on arrays.
delete[] text }
---------< END CODE SNIPPET>--------------

Yariv.

Discussion

  • riv

    riv - 2001-03-05
    • summary: Wrong delete in used in class HTML --> Wrong delete is used in class HTML
     
  • Geoff Hutchison

    Geoff Hutchison - 2001-03-05
    • labels: --> htdig
    • milestone: --> resolved
    • status: open --> open-fixed
     
  • Geoff Hutchison

    Geoff Hutchison - 2001-03-05

    Logged In: YES
    user_id=21420

    This was already fixed in the 3.2 code. I'm leaving this
    report as "open" if we decide to do a 3.1.6 release. Thanks
    for the report.

     
  • Geoff Hutchison

    Geoff Hutchison - 2001-03-12
    • assigned_to: nobody --> grdetil
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks