Skip to content

Conversation

pwithnall
Copy link
Contributor

While it’s fine to call memcmp(x, 0, 0) in practice, the C99 standard
explicitly says that this is not allowed: even if the length is zero,
the pointer arguments must be valid.

http://stackoverflow.com/a/16363034

Coverity ID: 141178

Signed-off-by: Philip Withnall withnall@endlessm.com

While it’s fine to call memcmp(x, 0, 0) in practice, the C99 standard
explicitly says that this is not allowed: even if the length is zero,
the pointer arguments must be valid.

http://stackoverflow.com/a/16363034

Coverity ID: 141178

Signed-off-by: Philip Withnall <withnall@endlessm.com>
@behdad
Copy link
Member

behdad commented Feb 8, 2017

Thanks. These quirks in the standards are really annoying. :)

@behdad
Copy link
Member

behdad commented Feb 8, 2017

Humm. I have no idea why check-defs.sh is failing all in a sudden.

@behdad behdad merged commit ffde3c9 into harfbuzz:master Feb 8, 2017
@khaledhosny
Copy link
Collaborator

Humm. I have no idea why check-defs.sh is failing all in a sudden.

See https://travis-ci.org/khaledhosny/harfbuzz/jobs/199785332#L1065

@behdad
Copy link
Member

behdad commented Feb 8, 2017

See https://travis-ci.org/khaledhosny/harfbuzz/jobs/199785332#L1065

Thanks. Let's see if I managed to fix it.

@khaledhosny
Copy link
Collaborator

This fixed the Linux build, the Mac build seems to be failing for a different reason.

@pwithnall pwithnall deleted the coverity branch February 9, 2017 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants