Skip to content

Commit 0c5f0aa

Browse files
keesherbertx
authored andcommitted
crypto: jitterentropy - use safe format string parameters
Since the API for jent_panic() does not include format string parameters, adjust the call to panic() to use a literal string to avoid any future callers from leaking format strings into the panic message. Signed-off-by: Kees Cook <[email protected]> Acked-by: Stephan Mueller <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent ec0d6fa commit 0c5f0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/jitterentropy-kcapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int jent_fips_enabled(void)
7979

8080
void jent_panic(char *s)
8181
{
82-
panic(s);
82+
panic("%s", s);
8383
}
8484

8585
void jent_memcpy(void *dest, const void *src, unsigned int n)

0 commit comments

Comments
 (0)