diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-07-28 21:32:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 15:16:46 -0700 |
commit | 7e39be436bea6983440a962da8375149166afa92 (patch) | |
tree | 87b89900cc9a6f73b018db3f87f2ac772b1337d4 /.clang-format | |
parent | 69f8fc3c5b78eff762e469ae8d0ff9d62f5114ba (diff) | |
download | subsurface-7e39be436bea6983440a962da8375149166afa92.tar.gz |
Fix possible memory corruption
A user reports a SIGSEGV that points to DownloadFromDCWidget::updateProgressBar()
in relation to strlen()/strdup(), at end of download. Reading the code, as I
can't reproduce the crash, it seems that the progress_bar_text is set to NULL
and later strdup-ped. The man page is not fully clear on this, but setting it
to the empty strings is much safer.
Might fix: #507
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions