bugGNU Octave - Bugs: bug #55400, contour3 causes...


bug #55400: contour3 causes heap-buffer-overflow with memory sanitizer

Submitted by:  Dmitri A. Sergatskov <dasergatskov>
Submitted on:  Sun 06 Jan 2019 01:16:35 AM UTC  
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  5.0.1 Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 06 Jan 2019 01:59:26 PM UTC, comment #5:

Thanks for testing.

I pushed the patch here:

Closing as fixed.

Markus Mützel <mmuetzel>
Project Member
Sun 06 Jan 2019 01:51:31 PM UTC, comment #4:

Yes, this patch solve those crashes.


Dmitri A. Sergatskov <dasergatskov>
Sun 06 Jan 2019 10:43:06 AM UTC, comment #3:

Thanks for reporting.
I am still not able to correctly set up the build with asan.

Could you please try if the attached diff fixes this issue for you?

(file #45882)

Markus Mützel <mmuetzel>
Project Member
Sun 06 Jan 2019 02:43:40 AM UTC, comment #2:

The others affected are ezsurfc, surfc, and meshc.
The rest of demos go through.


Dmitri A. Sergatskov <dasergatskov>
Sun 06 Jan 2019 01:27:31 AM UTC, comment #1:

I got the same crash (pointing to graphics.cc:9456)
doing "demo ezmeshc"

Perhaps the title should be not specific to contour3.


Dmitri A. Sergatskov <dasergatskov>
Sun 06 Jan 2019 01:16:35 AM UTC, original submission:

When compiled with address sanitizer (with or without Qt)
contour3(peaks(19)) causes:

This particular trace is on octave w/o qt.


Dmitri A. Sergatskov <dasergatskov>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #45882:  bug55400_heap-buffer-overflow.diff added by mmuetzel (561B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Updated the item)
  • -email is unavailable- added by dasergatskov (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-06 mmuetzel StatusNone => Fixed
        Open/ClosedOpen => Closed
        Operating SystemGNU/Linux => Any
    2019-01-06 mmuetzel Attached File- => Added bug55400_heap-buffer-overflow.diff, #45882

    Back to the top

    Powered by Savane 3.4