Files
romm/backend/handler/sync
Georges-Antoine Assi 00e40bdeb1 fix(sync): bound PSP PARAM.SFO size and TITLE length before ROM search (#5631)
A PARAM.SFO up to the upload limit was parsed in full, and its TITLE,
of any length, became the ROM search term. The search builds one SQL
condition per word, so a title of millions of words exhausted the
worker's memory before any query ran.

Reject PARAM.SFO files over 64 KiB (real PSP saves are under 5 KiB) and
ignore a TITLE longer than the 128-byte field the format defines.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:48:05 -05:00
..
2026-03-14 22:13:38 -04:00