diff options
author | nyamatongwe <devnull@localhost> | 2009-09-13 09:17:56 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-09-13 09:17:56 +0000 |
commit | 58310a7743970eb0f5d094389cbbdb63648b36fe (patch) | |
tree | 2a76d576abf02f0e54ef6a270917fcc8e3915c16 /src | |
parent | 5a040442fe44b62c37a2c1836de061b0f75c943e (diff) | |
download | scintilla-mirror-58310a7743970eb0f5d094389cbbdb63648b36fe.tar.gz |
Protect against NULL font names for SCI_STYLEGETFONT. Bug #2857425.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 6866cbc0f..d6fe5eb6a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6327,6 +6327,8 @@ sptr_t Editor::StyleGetMessage(unsigned int iMessage, uptr_t wParam, sptr_t lPar case SCI_STYLEGETSIZE: return vs.styles[wParam].size; case SCI_STYLEGETFONT: + if (!vs.styles[wParam].fontName) + return 0; if (lParam != 0) strcpy(CharPtrFromSPtr(lParam), vs.styles[wParam].fontName); return strlen(vs.styles[wParam].fontName); |