View Issue Details

IDProjectCategoryView StatusLast Update
0037574LazarusLCLpublic2020-08-15 15:20
ReporterMartin Friebe Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
Platform64bit IntelOSwin 10 
Product Version2.1 (SVN) 
Summary0037574: IDE Crash: TIpHtml overwrites huge amounts of random memory
DescriptionSee issue 0037561

The debugger can return large results (100 or 200KB of text). But other sources may also provide larger amount of html to be displayed.

procedure TIpHtml.Parse;
.....
  Getmem(TokenStringBuf, 65536);

Once the 65KB are full the panel will write to whatever memory follows (and eventually crash)
TagsNo tags attached.
Fixed in Revision
LazTarget-
Widgetset
Attached Files

Relationships

related to 0037561 resolvedMartin Friebe hint on array crashes lazarus 
related to 0037575 new TIpHtml: wrong layout on large data 

Activities

Martin Friebe

2020-08-15 15:09

manager   ~0124901

I have added a "workaround" in rev 63746.

Well its not really a workaround, since it can still crash in the same way.
However it now allocates a larger (and relative to the input size) amount of memory.So the likelihood of a crash is reduced.

It works for the related debugger hint.

Issue History

Date Modified Username Field Change
2020-08-15 04:14 Martin Friebe New Issue
2020-08-15 04:40 Martin Friebe Severity minor => crash
2020-08-15 04:40 Martin Friebe LazTarget => -
2020-08-15 04:41 Martin Friebe Summary TIpHtml overwrites huge amounts of random memory => IDE Crash: TIpHtml overwrites huge amounts of random memory
2020-08-15 13:56 Juha Manninen Relationship added related to 0037561
2020-08-15 15:09 Martin Friebe Note Added: 0124901
2020-08-15 15:20 Martin Friebe Relationship added related to 0037575