Hello,
Is this a bug in QsciScintilla::annotation() (from qsciscintilla.cpp in version
2.14.1) ? The variable “buf” is never initialized with anything.
// Get the annotation for a line, if any.
QString QsciScintilla::annotation(int line) const
{
int size = SendScintilla(SCI_ANNOTATIONGETTEXT, line, (const char *)0);
char *buf = new char[size + 1];
QString qs = bytesAsText(buf, size);
delete[] buf;
return qs;
}
I think there is a call for SendScintilla() missing:
char *buf = new char[size + 1];
SendScintilla(SCI_ANNOTATIONGETTEXT, line, (char *)buf);
Greetings,
Moritz
[ABB logotype]
—
Moritz Wenk
PA-PCP – APROL – R&D Engineer
ABB AG
An der Reichsbank 8
44127 Essen
Phone: +49 201 56577 100
E-mail: [email protected]<mailto:[email protected]>
abb.com<https://www.abb.com/>
[ABB logotype]
ABB AG
Sitz/Head Office: Mannheim
Registergericht/Registry Court: Mannheim
Handelsregisternummer/Commercial Register No.: HRB 4664
Vorstand/Managing Board: Klaus Eble (Vorsitzender/Chairman), Alexander Zumkeller
Vorsitzender des Aufsichtsrats/ Chairman of Supervisory Board: Adrian Guggisberg
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht
gestattet.
Bitte beachten Sie auch unsere Datenschutzerklärung, die Sie auf unserer
Webseite<https://new.abb.com/privacy-policy/de/datenschutz> finden.
This E-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this E-mail in error) please
notify the sender immediately and destroy this E-mail. Any unauthorized
copying, disclosure or distribution of the material in this E-mail is strictly
forbidden.
Please also take note of our privacy notice, which you can find on our
webpage<https://new.abb.com/privacy-notice>.