Also denote lack of need for zeroing potentially-sensitive information.
static bool
atheme_pbkdf2v2_parse_dbentry(struct pbkdf2v2_dbentry *const restrict dbe, const char *const restrict parameters)
{
- char sdg64[0x1000];
- char ssk64[0x1000];
- char shk64[0x1000];
+ char sdg64[BUFSIZE];
+ char ssk64[BUFSIZE];
+ char shk64[BUFSIZE];
bool retval = true;
(void) slog(LG_DEBUG, "%s: sscanf(3) was unsuccessful", MOWGLI_FUNC_NAME);
err:
+ // No need to zero dbe, callers do that if this fails
retval = false;
done: