An off-by-one overflow flaw was found in radare2 due to mismatched array length in core_java.c. This could allow an attacker to cause a crash, and perform a denail of service attack.
cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:*
EEE8DA49-FB7A-4416-8942-56DD67E62CD9
4.4.0
OR
### Work environment

| Questions                                            | Answers
|------------------------------------------------------|--------------------
| OS/arch/bits (mandatory)                             | Ubuntu x86 64
| File format of the file you reverse (mandatory)      | ELF
| Architecture/bits of the file (mandatory)            | x86/64
| r2 -v full output, **not truncated** (mandatory)     | rradare2 4.3.1 23909 @ linux-x86-64 git.4.3.1-1-ge55661b commit: e55661bd4c229b9095982675709bdd52e1b4c068 build: 2020-03-22__22:18:20


### Expected behavior
Handle input error
### Actual behavior
seg fault

### Steps to reproduce the behavior 
$ r2 -
[0x00000000]> java 0
Segmentation fault (core dumped)

### Additional Logs, screenshots, source-code,  configuration dump, ...
![image](https://user-images.githubusercontent.com/20163299/77502165-0289f700-6e95-11ea-9e63-c1b0fa9d6039.png)

in `core_java.c`, `END_CMDS` not match the actual length in `JAVA_CMDS`

unmatched  array length in core_java.c
This is a GitHub Issue
repo:radare2
owner:radareorg
Title : unmatched  array length in core_java.c
Issue date:

--- start body ---
### Work environment

| Questions                                            | Answers
|------------------------------------------------------|--------------------
| OS/arch/bits (mandatory)                             | Ubuntu x86 64
| File format of the file you reverse (mandatory)      | ELF
| Architecture/bits of the file (mandatory)            | x86/64
| r2 -v full output, **not truncated** (mandatory)     | rradare2 4.3.1 23909 @ linux-x86-64 git.4.3.1-1-ge55661b commit: e55661bd4c229b9095982675709bdd52e1b4c068 build: 2020-03-22__22:18:20


### Expected behavior
Handle input error
### Actual behavior
seg fault

### Steps to reproduce the behavior 
$ r2 -
[0x00000000]> java 0
Segmentation fault (core dumped)

### Additional Logs, screenshots, source-code,  configuration dump, ...
![image](https://user-images.githubusercontent.com/20163299/77502165-0289f700-6e95-11ea-9e63-c1b0fa9d6039.png)

in `core_java.c`, `END_CMDS` not match the actual length in `JAVA_CMDS`

--- end body ---

comments :
--- start comments ---

--- end comments ---