Page MenuHome GnuPG

check_cert_policy does not check strpbrk ret val for NULL
Closed, ResolvedPublic

Description

p = strpbrk (allowed, " :\n");

if (!*p || p == allowed)

Event Timeline

werner added a subscriber: werner.

If you check the do-while above you will notice that after the loop LINE is
guaranteed to always end with a LF. Thus strpbrk will always succeed.

werner claimed this task.