Commit 1a4f2e94 authored by Timo Teräs's avatar Timo Teräs

db: consider control characters in filename as malicious

Especially a newline can produce havoc in the database file as
the filename is written there as-is. This hardenes the extraction
to consider any control character as malicious. Additional
hardening is added to database loading to better detect corrupt
state and return proper error code about it.
Reported-by: Luca Weiss's avatarLuca Weiss <luca@z3ntu.xyz>
parent f6656f9d
Pipeline #71038 passed with stage
in 45 seconds