stardict Segmentation fault (core dumped)
Bug #1999288 reported by
Lin Xiao
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
stardict (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description:
stardict segfault frequently due to uninitialized pointer from stardict-
Additional info:
Affected Version: 3.0.7+git202112
Steps to reproduce:
1.start stardict
2.enter random long string in the search field which is unlikely to be a real word(e.g. 'aaafdsfdsdfsfa
3.delete and reenter some chars back and forth repeatedly
4.stardict will segfault very quickly
tags: | added: jammy patch |
To post a comment you must log in.
--- a/dict/ stardict- plugins/ stardict- youdaodict- plugin/ stardict_ youdaodict. cpp 2022-10-04 16:42:39.035798471 +0800 stardict- plugins/ stardict- youdaodict- plugin/ stardict_ youdaodict. cpp 2022-10-09 10:02:34.040190482 +0800
+++ b/dict/
@@ -200,6 +200,7 @@
QueryInfo *qi = (QueryInfo *)userdata;
NetDictRespons e *resp = new NetDictResponse;
resp-> bookname = _("www. YouDao. com");
resp-> booklink = "http:// www.youdao. com";
+ resp->data = nullptr;
resp->word = qi->word; // So neen't free qi->word;