Loading ...
Sorry, an error occurred while loading the content.

2005 hilight with bad regexp core

Expand Messages
  • Schofield, Bryan (GE Trans)
    I found a small bug in hilight. While defining a buffer list hilight scheme, I accidentally typed [[:almum:]] instead of [[:alnum:]] . ; the evil line
    Message 1 of 2 , Jun 1, 2005
    • 0 Attachment
      I found a small bug in hilight. While defining a buffer list hilight scheme, I accidentally typed "[[:almum:]]" instead of "[[:alnum:]]".

      ; the evil line
      hilight .hilight.blist 2 "[[:almum:]]+\\.cc" .scheme.type

      This caused ME to core while loading myblist.emf. It's not that big of deal, but it is bug none-the-less.

      -- bryan
    • Jon Green
      ... Nice find ! Fix is as follows if you roll your own. Jon. cd /home/jon/merep/me/src/ cvs diff -c -w hilight.c Index: hilight.c
      Message 2 of 2 , Jun 1, 2005
      • 0 Attachment
        Schofield, Bryan (GE Trans) wrote:
        > I found a small bug in hilight. While defining a buffer list hilight scheme, I accidentally typed "[[:almum:]]" instead of "[[:alnum:]]".
        >
        > ; the evil line
        > hilight .hilight.blist 2 "[[:almum:]]+\\.cc" .scheme.type
        >
        > This caused ME to core while loading myblist.emf. It's not that big of deal, but it is bug none-the-less.
        >
        > -- bryan


        Nice find !
        Fix is as follows if you roll your own.
        Jon.

        cd /home/jon/merep/me/src/
        cvs diff -c -w hilight.c

        Index: hilight.c
        ===================================================================
        RCS file: /usr/cvs/repme/me/src/hilight.c,v
        retrieving revision 2.28
        diff -c -w -r2.28 hilight.c
        *** hilight.c 9 May 2005 22:17:48 -0000 2.28
        --- hilight.c 1 Jun 2005 20:23:48 -0000
        ***************
        *** 82,89 ****
        #define meHIL_TEST_WORD 0x0c
        #define meHIL_TEST_ANY 0x0d
        #define meHIL_TEST_MASK 0x0f
        ! #define meHIL_TEST_NOCLASS (meHIL_TEST_ANY-meHIL_TEST_CLASS)
        ! #define meHIL_TEST_NOFIXED (meHIL_TEST_ANY-meHIL_TEST_CLASS)

        #define meHIL_TEST_INVERT 0x10
        #define meHIL_TEST_MATCH_NONE 0x20
        --- 82,88 ----
        #define meHIL_TEST_WORD 0x0c
        #define meHIL_TEST_ANY 0x0d
        #define meHIL_TEST_MASK 0x0f
        ! #define meHIL_TEST_NOCLASS (1+meHIL_TEST_ANY-meHIL_TEST_SPACE)

        #define meHIL_TEST_INVERT 0x10
        #define meHIL_TEST_MATCH_NONE 0x20

        *****CVS exited with code 1*****
      Your message has been successfully submitted and would be delivered to recipients shortly.