Skip to content

fix: catch throw instead of error#850

Open
charmful0x wants to merge 3 commits into
neo/edgefrom
audit/scheduler
Open

fix: catch throw instead of error#850
charmful0x wants to merge 3 commits into
neo/edgefrom
audit/scheduler

Conversation

@charmful0x
Copy link
Copy Markdown

@charmful0x charmful0x commented Apr 14, 2026

  • post_schedule/3 was catching error:{...} but hb_cache:ensure_all_loaded/2 raises that as a throw
  • hardened from/to slot in get_schedule/3 where it was not validating if the passed From/To is non-numeric, and pass it blindly to hb_util:int/1 -> crash (throw 500)

also the X when X < 0 -> 0; branch was 'flaky'/bypassed given X was binary. switched hb_util:int/1 to hb_util:safe_int/1 and handled invalid non-numeric slot ranges

image image

@charmful0x charmful0x requested a review from jfrain99 April 14, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant