fix: Remaining audit findings — OOM, security, error handling (#81) #85
Reference in New Issue
Block a user
Delete Branch "fix/audit-remaining"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes all remaining critical issues and several medium findings from the codebase audit (#81).
Closes #73, closes #74, closes #75. Ref #81.
Fixes
CURLOPT_PUT/CURLOPT_INFILE— no morefile_get_contentsOOMDatabaseDumper::dumpToFile()streams SQL to disk;BackupEngineusesaddFile()notaddFromString()AkeebaImporterremovesunserialize()— JSON only, skips legacy data$archiveNameinitialized before try (prevents undefined in catch)createArchiver()throws on unknown format instead of silent ZIP fallbackTarGzArchiver::close()uses try/finally to clean up intermediate.tarTest Plan
database.sqlarchive_formatprofile value shows clear error.tarfile after completion or failure