Skip to content

Commit f449ef5

Browse files
committed
2 parents cb81564 + 2a53226 commit f449ef5

File tree

137 files changed

+10915
-7982
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+10915
-7982
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,17 @@ Please provide all steps required to reproduce the behavior:
2626
**Expected Behavior:**
2727
Please provide a clear and concise description of what you *expected* to happen.
2828

29-
**Screenshots:**
30-
If applicable, please add screenshots here to help explain your problem.
29+
**Screenshots/Video Recording:**
30+
If applicable, please add screenshots/video recording here to help explain your problem.
31+
32+
**Binary:**
33+
If applicable, please provide us with the binary to help us work with the issue faster. Here are a few options:
34+
35+
1. Directly attach it to this issue in a ZIP archive
36+
2. Share a publicly accessible link to it (For malware samples, we do not have access to VirusTotal; [Malshare](https://malshare.com/) is an option)
37+
3. Email it to binaryninja at vector35.com, or join our [slack](https://slack.binary.ninja/) and share with us in private
38+
4. We understand sometimes it is not possible to share the binary -- sure, no worries, we can still work with it!
39+
5. If your issue is general and not related to a specific binary, then there is no need to attach the binary as well
3140

3241
**Additional Information:**
3342
Please add any other context about the problem here.

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[submodule "examples/x86_extension/src/asmx86"]
22
path = examples/x86_extension/src/asmx86
33
url = https://github.com/Vector35/asmx86.git
4-
[submodule "suite/binaries"]
5-
path = suite/binaries
6-
url = https://github.com/Vector35/BinaryTestCases.git
74
[submodule "vendor/fmt"]
85
path = vendor/fmt
96
url = https://github.com/fmtlib/fmt.git

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ In addition to the default build setup, you may want to:
5353

5454
There are many examples available. The [Python examples folder](https://github.com/Vector35/binaryninja-api/tree/dev/python/examples) demonstrates many different applications of the Python API, while C++ examples include:
5555

56+
- [background_task](https://github.com/Vector35/binaryninja-api/tree/dev/examples/background_task) is a plugin that demonstrates managing a background task.\*
5657
- [bin-info](https://github.com/Vector35/binaryninja-api/tree/dev/examples/bin-info) is a standalone executable that prints some information about a given binary to the terminal.\*
5758
- [breakpoint](https://github.com/Vector35/binaryninja-api/tree/dev/examples/breakpoint) is a plugin that allows you to select a region within an x86 binary and use the context menu to fill it with breakpoint bytes.
5859
- [command-line disassm](https://github.com/Vector35/binaryninja-api/tree/dev/examples/cmdline_disasm) demonstrates how to dump disassembly to the command line.\*

arch/arm64/arch_arm64.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,8 +2450,17 @@ class Arm64ImportedFunctionRecognizer : public FunctionRecognizer
24502450

24512451
Ref<Symbol> funcSym = Symbol::ImportedFunctionFromImportAddressSymbol(sym, func->GetStart());
24522452
data->DefineAutoSymbol(funcSym);
2453-
func->ApplyImportedTypes(funcSym);
2454-
return true;
2453+
2454+
auto extSym = data->GetSymbolsByName(funcSym->GetRawName(), data->GetExternalNameSpace());
2455+
if (!extSym.empty()) {
2456+
DataVariable var;
2457+
if (data->GetDataVariableAtAddress(extSym.front()->GetAddress(), var))
2458+
{
2459+
func->ApplyImportedTypes(funcSym, var.type);
2460+
}
2461+
return true;
2462+
}
2463+
return false;
24552464
}
24562465

24572466

arch/arm64/arm64test.py

Lines changed: 778 additions & 104 deletions
Large diffs are not rendered by default.

arch/arm64/disassembler/sysregs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ const char *get_system_register_name(enum SystemReg sr)
366366
case 50823: return "scxtnum_el1";
367367
case 50952: return "cntkctl_el1";
368368
case 53248: return "csselr_el1";
369+
case 55297: return "ctr_el0";
370+
case 55303: return "dczid_el0";
369371
case 55824: return "nzcv";
370372
case 55825: return "daifset";
371373
case 55829: return "dit";
@@ -433,6 +435,7 @@ const char *get_system_register_name(enum SystemReg sr)
433435
case 57086: return "amevtyper114_el0";
434436
case 57087: return "amevtyper115_el0";
435437
case 57088: return "cntfrq_el0";
438+
case 57089: return "cntpct_el0";
436439
case 57104: return "cntp_tval_el0";
437440
case 57105: return "cntp_ctl_el0";
438441
case 57106: return "cntp_cval_el0";

arch/arm64/disassembler/sysregs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ enum SystemReg {
361361
REG_SCXTNUM_EL1=50823,
362362
REG_CNTKCTL_EL1=50952,
363363
REG_CSSELR_EL1=53248,
364+
REG_CTR_EL0=55297,
365+
REG_DCZID_EL0=55303,
364366
REG_NZCV=55824,
365367
REG_DAIFSET=55825,
366368
REG_DIT=55829,
@@ -428,6 +430,7 @@ enum SystemReg {
428430
REG_AMEVTYPER114_EL0=57086,
429431
REG_AMEVTYPER115_EL0=57087,
430432
REG_CNTFRQ_EL0=57088,
433+
REG_CNTPCT_EL0=57089,
431434
REG_CNTP_TVAL_EL0=57104,
432435
REG_CNTP_CTL_EL0=57105,
433436
REG_CNTP_CVAL_EL0=57106,

0 commit comments

Comments
 (0)