mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 07:18:16 +08:00
GP-3270 improve AIFF embedded media search
Don't trigger on 'FORM....AIFF' pattern unless it has a valid size value. Add AIFC since its the same thing with slightly different magic bytes.
This commit is contained in:
+4
-1
@@ -85,7 +85,10 @@ public class EmbeddedMediaAnalyzer extends AbstractAnalyzer {
|
||||
AUDataType.MAGIC, AUDataType.MAGIC_MASK);
|
||||
|
||||
addByteSearchPattern(searcher, program, foundMedia, new AIFFDataType(), "AIFF",
|
||||
AIFFDataType.MAGIC, AIFFDataType.MAGIC_MASK);
|
||||
AIFFDataType.MAGIC_AIFF, AIFFDataType.MAGIC_MASK);
|
||||
|
||||
addByteSearchPattern(searcher, program, foundMedia, new AIFFDataType(), "AIFC",
|
||||
AIFFDataType.MAGIC_AIFC, AIFFDataType.MAGIC_MASK);
|
||||
|
||||
searcher.search(program, searchSet, monitor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user