bugGNU Screen - Bugs: bug #47546, On resizing screen may cause an...


bug #47546: On resizing screen may cause an out of bounds memory read

Submitted by:  Hanno Boeck <hanno>
Submitted on:  Sun 27 Mar 2016 11:21:10 AM UTC  
Votes:  1  
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Fixed Release:  None Planned Release:  None
Work Required:  None

Add a New Comment(Rich Markup)

You are not logged in

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


Sun 27 Mar 2016 11:21:10 AM UTC, original submission:

If compiled with address sanitizer screen will sometimes produce out of memory reads if the window is resized. Unfortunately I wasn't able to completely isolate the situation when this happens.

To reproduce:

  • Compile screen (latest git code) with address sanitizer my using ./configure CFLAGS="-fsanitize=address -g" LDFLAGS="-fsanitize=address"
  • Start screen in a graphical terminal
  • Do some things and resize the window.

I'll attach a stack trace from address sanitizer. To see the asan error one has to use the environment variable ASAN_OPTIONS and set log_path (e.g. "export ASAN_OPTIONS=log_path=/tmp/asan-error"), because screen will disable stderr.

Hanno Boeck <hanno>


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

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by ssducf (Voted in favor of this item)
  • -email is unavailable- added by hanno (Submitted the item)

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

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-22 ssducf Carbon-Copy- => Added ssducf
    2016-03-27 hanno Attached File- => Added screen-oob-read-on-resize.txt, #36779

    Back to the top

    Powered by Savane 3.4