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: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None
Fixed Release: NonePlanned 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 File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 22 Jul 2017 06:02:16 PM UTCssducfCarbon-Copy-=>Added ssducf
    Sun 27 Mar 2016 11:21:10 AM UTChannoAttached File-=>Added screen-oob-read-on-resize.txt, #36779

    Back to the top

    Powered by Savane 3.1-cleanup1