Skip to content

Commit

Permalink
Detect invalid content (lutzroeder#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Oct 7, 2023
1 parent f5174b4 commit 480261e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5608,7 +5608,8 @@ view.ModelFactoryService = class {
{ name: 'V8 context snapshot', value: /^.\x00\x00\x00.\x00\x00\x00/, identifier: 'v8_context_snapshot.bin' },
{ name: 'V8 natives blob', value: /^./, identifier: 'natives_blob.bin' },
{ name: 'ViSQOL model', value: /^svm_type\s/ },
{ name: 'SenseTime model', value: /^STEF/ }
{ name: 'SenseTime model', value: /^STEF/ },
{ name: 'AES Crypt data', value: /^AES[\x01|\x02]\x00/ }
];
/* eslint-enable no-control-regex */
const buffer = stream.peek(Math.min(4096, stream.length));
Expand Down

0 comments on commit 480261e

Please sign in to comment.