mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-0 added safety check for eclipse bin directory treatment as module
root. Moved DataType extension point to SoftwareModeling.
This commit is contained in:
parent
1333ac6a0c
commit
6aaf9139ee
3 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
||||||
Analyzer
|
Analyzer
|
||||||
DataType
|
|
||||||
Demangler
|
Demangler
|
||||||
Exporter
|
Exporter
|
||||||
FieldFactory
|
FieldFactory
|
||||||
|
|
|
@ -3,3 +3,4 @@ RelocationHandler
|
||||||
LanguageProvider
|
LanguageProvider
|
||||||
LanguageTranslator
|
LanguageTranslator
|
||||||
Constraint
|
Constraint
|
||||||
|
DataType
|
||||||
|
|
|
@ -63,6 +63,11 @@ public class ModuleUtilities {
|
||||||
*/
|
*/
|
||||||
public static boolean isModuleDirectory(Path path) {
|
public static boolean isModuleDirectory(Path path) {
|
||||||
File file = path.toFile();
|
File file = path.toFile();
|
||||||
|
if ("bin".equals(file.getName())) {
|
||||||
|
// Prevent eclipse project bin directory from being treated as module root
|
||||||
|
// since files frequently get copied from root into bin
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return new File(file, MANIFEST_FILE_NAME).exists();
|
return new File(file, MANIFEST_FILE_NAME).exists();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue