Menu

#753 Incorrect define of DWRITE_HIT_TEST_METRICS structure in dwrite.h cause SIGSEGV

v1.0 (example)
closed-fixed
nobody
None
5
2018-07-30
2018-07-30
Zufu Liu
No

Incorrect define of DWRITE_HIT_TEST_METRICS structure in dwrite.h (line 498) cause SIGSEGV.
See the bug report at https://sourceforge.net/p/scintilla/bugs/2026/, thanks Neil for finding it out.

the BOOL isTrimmed field is missing, the whole definition from https://docs.microsoft.com/en-us/windows/desktop/api/dwrite/ns-dwrite-dwrite_hit_test_metrics is:

struct DWRITE_HIT_TEST_METRICS {
  UINT32 textPosition;
  UINT32 length;
  FLOAT  left;
  FLOAT  top;
  FLOAT  width;
  FLOAT  height;
  UINT32 bidiLevel;
  BOOL   isText;
  BOOL   isTrimmed;
};

Discussion

  • LIU Hao

    LIU Hao - 2018-07-30
    • status: open --> closed-fixed
     
  • LIU Hao

    LIU Hao - 2018-07-30

    Fixed on master.

     

Log in to post a comment.

MongoDB Logo MongoDB