Segfault scanning non-font files. Disallow scan edit of user vars. (#8767)
Missing NULL font check before attempting to edit scanned pattern. Also, <match target="scan"> rules are now checked to ensure all edited variables are in the predefined set; otherwise, the resulting cache files will not be stable.