p2r: correctly fall back to bytecode when regoff locations have offs of outside of [min_S16, max_S16] - in these cases, the offset is too big to fit inside of a packed 64-bit location encoding, so we need to fall back. before, we were only falling back incorrectly when the offset was outside of [0, max_U16], but this is not right. also, win32_wm: don't interpret '\n' (ctrl+J)

This commit is contained in:
Ryan Fleury committed 2026-08-21 12:08:23 -07:00
1 parent d75ea2d55e
commit 74624df829
3 files changed
+2 -8

No files matched your search

-6
View File
@@ -32,9 +32,3 @@ target:
executable: "build/ryan_scratch.exe"
working_directory: build
}
target:
{
executable: "build/radbin.exe"
working_directory: build
arguments: "--rdi raddbg"
}
+1 -1
View File
@@ -591,7 +591,7 @@ internal RDIM_Location
cv2r_location_from_addr_reg_off(Arena *arena, RDI_Arch arch, RDI_RegCode reg_code, U32 reg_byte_size, U32 reg_byte_pos, S64 offset, B32 extra_indirection)
{
RDIM_Location result = {0};
if(0 <= offset && offset <= (S64)max_U16)
if(min_S16 <= offset && offset <= max_S16)
{
if(extra_indirection)
{
@@ -506,7 +506,7 @@ w32_wm_wnd_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_CHAR:
{
U32 character = wParam;
if((character >= 32 && character != 127) || character == '\n' || character == '\r')
if((character >= 32 && character != 127) || character == '\r')
{
WM_Event *event = w32_wm_push_event(WM_EventKind_Text, window);
if(lParam & bit29)