URL:
<http://savannah.gnu.org/bugs/?47546>
Summary: On resizing screen may cause an out of bounds memory
read
Project: GNU Screen
Submitted by: hanno
Submitted on: Sun 27 Mar 2016 01:21:10 PM CEST
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: None
Fixed Release: None
Planned Release: None
Work Required: None
_______________________________________________________
Details:
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.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 27 Mar 2016 01:21:10 PM CEST Name: screen-oob-read-on-resize.txt
Size: 3kB By: hanno
<http://savannah.gnu.org/bugs/download.php?file_id=36779>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47546>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/