Subject: CVS commit: pkgsrc/devel/radare2
From: Pierre Pronchery
Date: 2023-01-28 02:28:42
Message id: 20230128012842.6B564FA90@cvs.NetBSD.org

Log Message:
radare2: update to 5.8.2

Changes in 5.8.2:

### anal

* Honor the micromips codealign, add missing =SN and cc
* Set indirect code refs from load instructions
* Make r_anal_optype_{to,from}_string use the same optypes array
* Rework of the function merging
* Add Plan 9 calling conventions
* Basic blocks are not modified if not initialized
* Add test for gb srcs/dsts json and valtype
* Fix multiple typos in ios-syscalls.txt

### analysis

* Make r_anal_optype_{to,from}_string use the same optypes array
* Rework of the function merging

### api

* Make r_str_casecmp() null-proof to fix weird crash on windows
* Implement RCore.cmdCallAt() + minor improve internal cmd calls
* Fix RFile.path() when $PATH contains no colon

### arch

* Add esil support for v850 ei and di instructions
* Add esil support for v850 reti instruction
* Add esil support for v850 stsr instruction
* Add esil support for v850 ldsr instruction
* Blindfix for a glitch in the v850 disassembler
* Simplify esil generation of v850 bcond instructions
* Add esil support for v850 setf instruction
* Improve v850 esil support and fix some related bugs
* Fix asm.cpu=? when using arch plugins
* Fix rasm2 -a mips{.gnu} -b16 -e -c micro -d '4fe5'
* Move mcore into the arch
* Support micromips on both gnu and capstone plugins
* Move anal.propeller
* Add micromips cpu for the mips.gnu plugin
* Move nios2 away from anal
* Register RArch plugins to be loaded dynamically

### asm

* Implement .extern directive in rasm2, fix other directives
* Fix ARM assembler for blt, ble, cmn, tst, and teq instructions

### bin

* Fix null deref assert in the TE parser
* Fix unnecessary memory exhaustion in the elf parser
* Fix allocation crash in bin.symbols
* Support elf-micromips auto detection
* DWARF5 line header parsing
* License Plan 9 code as MIT
* Add Plan 9 line number information
* Fix load address of arm64 kernel

### build

* Do not depend on strcasecmp in libzip, build fail on Centos7
* Upgrade v35arm64 to fix non-c99 compilation
* Update to the latest tinycc in the CI
* Remove the need for ios-include.tar.gz
* Use an authorized API call for the abi job to increase the rate limit
* Remove condition on 'linux-static' job
* Integrate ABI diffing into CI scripts
* Add --with-ssl-crypto, rename --with-openssl to --with-ssl
* meson: Install various missing files
* Use fakeroot if available when packaging for debian
* Integrate ABI diffing into CI scripts

### ci

* Upgrade CodeQL actions from v1 to v2
* Update the SPEC file and build RPM packages in the CI
* Update the SPEC file and build RPM packages in the CI

### crash

* Fix infinite loop and null derefs when calling pd from pd in Cr
* Blindfix with a hack and a workaround to fix an UAF in Cr
* Fix an UAF in the visual bit editor
* Fix null deref segfault in Vd1
* Fix UAF in oc
* Fix null deref in io.bank

### debug

* Fix #8992 - Apply command line settings before initializing debug plugin
* Add required A0 register into x86 register profile provided by GDB
* Use proper type for the XMM register inside profile recieved
* Implement dpt. command to print the current selected process

### disasm

* Optimize RAnal.kind() as its called many times with a large buffer from pd
* Bring back and improve the Cr command

### doc

* Reference abidiff's ci usage in doc/abi.md
* Reference doc/abi in DEVELOPERS

### esil

* Fix emulation of the arm64 tst instruction

### fs

* Improve json output for mlj - mountpoint type and delta

### globals

* Remove global in util/lib and just use RLogLevel

### indent

* Balance spacings in braces

### js

* Add experimental r2.cmd0 and r2.call0 for qjs
* Enable stack overflow check when recursive calls
* Improve error messages in the qjs repl
* Rename qjs's dir function to dump
* Support loading/unloading multiple QJS plugins
* Update typescript compiler and move r2plugin into r2
* Fix undefined behaviour in quickjs when casting double to int64
* Fix #21205 - Missing object definition for aoj
* Fix undefined behaviour in double->int cast
* Extra checks and enforce the singleton core plugin
* Improve typescript entrypoint logic detection
* Initial support for javascript core plugins
* Upgrade r2papi-ts from 0.0.4 to 0.0.10
* Support typescript Main namespace and pass --allowJs

### json

* Fix #21205 - Missing object definition for aoj

### lang

* Initial implementation of lang.s assembly scripting
* R_TH_LOCAL two globals in RLang.c
* Reestructure lib dependencies, add lang.asm plugin

### perf

* Massage the bottleneck that was making r2dec super slow
* Some more likely hints in RCore.cmd from valgrind

### print

* Fix pA and pA? (/A was moved into /a)
* Implement pvp and wvp to print and write pointers
* Fix fortune message for #md5 and add ph: variant of "ph "

### qjs

* Add QJS_NOABORT option to avoid aborts

* r2pm

* Improvements for r2pm when getcwd is null
* Add R2PM_NEEDS and auto-install system build deps if possible
* Fix git check before cloning the repo
* Fix R2PM_DEPS first time issue
* Report better errors on first r2pm setup
* Initial experimental support for portable qjs packages

### search

* Implement tire algorithm in

### shell

* Fix assert in ph
* Initial skeleton integration with GNU/Poke
* Fix profiling RCore.cmdCall() via ?t""
* Add help message for the quote command "?
* Implement LAj and LAq commands to list arch plugins
* Implement uname -h, -m, -b, -j ...
* Handle unknown subcommands for t
* pdrj shouldnt be modifying the current seek
* Add -j command as an alias for js:
* Add the ability to run qjs scripts with r2 -je

### slides:xa

* Improve r2slides with title, colors and 2 column mode

### test

* Update libfuzz build instructions
* Add the dwarf fuzzer program
* Add some test for ARM assembler

### tools

* Add R2_DEBUG_NOPAPI env var
* Show error when passing un-even hexpair to rasm2

### visual

* Fix (null) regression in visual bit editor's disasm
* Handle JK in bit editor to move 8 bytes fwd/backward

### vuln

* Fix ANSI Escape Sequence Injection vulns via DWARF

Files:
RevisionActionfile
1.40modifypkgsrc/devel/radare2/Makefile
1.12modifypkgsrc/devel/radare2/PLIST
1.19modifypkgsrc/devel/radare2/distinfo
1.2modifypkgsrc/devel/radare2/patches/patch-libr_io_p_shm.mk