~thopiekar/emgd/+git/libxfont:master

Last commit made on 2016-06-10
Get this branch:
git clone -b master https://git.launchpad.net/~thopiekar/emgd/+git/libxfont

Branch merges

Branch information

Name:
master
Repository:
lp:~thopiekar/emgd/+git/libxfont

Recent commits

33a98f2... by Adam Jackson <email address hidden>

freetype: Fix a logic error in computing face name

gcc6 chirps an indentation warning here, but really this is bad code.
Effectively this would ignore en_US or en_UK names for the font, despite
that those are the English names the font is most likely to have.

Signed-off-by: Adam Jackson <email address hidden>
Reviewed-by: Alan Coopersmith <email address hidden>

7908446... by Adam Jackson <email address hidden>

autogen: Set a default subject prefix for patches

Signed-off-by: Adam Jackson <email address hidden>

7557fe1... by Adam Jackson <email address hidden>

configure: Use -fvisibility=hidden if available

text data bss dec hex filename
 233732 8168 1616 243516 3b73c .libs/libXfont2.so.2.before
 217113 6816 1616 225545 37109 .libs/libXfont2.so.2.after

Signed-off-by: Adam Jackson <email address hidden>
Reviewed-by: Emil Velikov <email address hidden>

6972ea0... by Jeremy Sequoia

fserve: Fix a buffer read overrun in _fs_client_access

https://bugs.freedesktop.org/show_bug.cgi?id=83224

Found by clang's Address Sanitizer

 crac.num_auths = set_font_authorizations(&authorizations, &authlen,
       client);
 /* Work around bug in xfs versions up through modular release 1.0.8
    which rejects CreateAC packets with num_auths = 0 & authlen < 4 */
 if (crac.num_auths == 0) {
     authorizations = padding;
     authlen = 4;
 } else {
     authlen = (authlen + 3) & ~0x3;
 }
 crac.length = (sizeof (fsCreateACReq) + authlen) >> 2;
 crac.acid = cur->acid;
 _fs_add_req_log(conn, FS_CreateAC);
 _fs_write(conn, (char *) &crac, sizeof (fsCreateACReq));
 _fs_write(conn, authorizations, authlen);

In the case in the report, set_font_authorizations setup authorizations as a
34 byte buffer (and authlen set to 34 as one would expect). The following
block changed authlen to 36 to make it 4byte aligned and the final _fs_write()
caused us to read 36 bytes from this 34 byte buffer.

This changes the incorrect size increase to instead use _fs_write_pad which
takes care of the padding for us.

Signed-off-by: Jeremy Huddleston Sequoia <email address hidden>

d967caa... by Jeremy Sequoia

fstrans: Remove unused foo() function

The point of it seems to have been to silence an unused function warning, but
there's no point if we're just transitioning that to another unused function
warning.

src/fc/fstrans.c:32:20: warning: unused function 'foo' [-Wunused-function]
static inline void foo(void) { (void) is_numeric("a"); }
                   ^
1 warning generated.

Signed-off-by: Jeremy Huddleston Sequoia <email address hidden>
Reviewed-by: Keith Packard <email address hidden>

e6009ad... by Jeremy Sequoia

fserve: Silence a -Wformat warning

src/fc/fserve.c:653:32: warning: format specifies type 'int' but the argument has type 'CARD32' (aka 'unsigned long') [-Wformat]
               " from font server\n", rep->length);
                                      ^~~~~~~~~~~
1 warning generated.

Signed-off-by: Jeremy Huddleston Sequoia <email address hidden>

ac559fa... by Jeremy Sequoia

bitmap: Bail out on invalid input to FontFileMakeDir instead of calling calloc for 0 bytes

Found by clang static analysis:
    Call to 'calloc' has an allocation size of 0 bytes

Signed-off-by: Jeremy Huddleston Sequoia <email address hidden>

d0fff11... by Jeremy Sequoia

FreeType: Correct an allocation size

Found by clang static analysis:
    Result of 'calloc' is converted to a pointer of type 'int', which is
    incompatible with sizeof operand type 'int *'

This is likely benign because the old size was larger on any platform where
sizeof(int) <= sizeof(void *), which is everywhere.

Signed-off-by: Jeremy Huddleston Sequoia <email address hidden>

eefc0b0... by Keith Packard

Revert "Add compiler warning flags". Leave warning fixes.

This reverts commit eb67d10ae82b364a4324e96ce53baaa4e5e75f97, but
leaves the warning fixes in place; it looks like either I was
confused, or something has changed so that XORG_DEFAULT_OPTIONS now
pulls in the appropriate compiler warnings.

14488af... by Keith Packard

Bump version to 2.0.1

This release just fixes some build issues with 2.0.0

Signed-off-by: Keith Packard <email address hidden>