multiple character encodings in grsec patch

Discuss and suggest new grsecurity features

multiple character encodings in grsec patch

Postby IooNag » Tue Nov 17, 2015 3:44 pm

Hello, the grsecurity test patch currently contains two lines with non-ASCII symbols:

  • The first line of grsecurity/Makefile contains character en dash (U+2013) encoded in UTF-8:
    Code: Select all
    # grsecurity \xe2\x80\x93 access control and security hardening for Linux
  • The third line of net/netfilter/xt_gradm.c contains character copyright sign (U+A9) encoded in ISO-8859:
    Code: Select all
     *\tCopyright \xa9 Zbigniew Krzystolik, 2010

This makes some programs have some trouble reading the patch: vim displays "â<80><93>" instead of the en dash, gedit warns about a character encoding-related problem when opening the patch file, meld automatically uses UTF-16 which results in weird characters, etc. Could you please fix the encoding of grsecurity patch in a later version? For example with:
Code: Select all
sed 's/ \xa9/ \xc2\xa9/' -i net/netfilter/xt_gradm.c
Posts: 2
Joined: Tue Nov 17, 2015 2:29 pm

Re: multiple character encodings in grsec patch

Postby spender » Wed Nov 18, 2015 10:49 pm

Thanks, this was fixed yesterday.

Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Return to grsecurity development