Skip to content

Uninitialized r2 in divmod_x32x32_unsafe without PICO_DIVIDER_DISABLE_INTERRUPTS #2773

@andylinpersonal

Description

@andylinpersonal

When the divmod_s32s32_unsafe and divmod_u32u32_unsafe is called without enabled PICO_DIVIDER_DISABLE_INTERRUPTS, ldr r2, =SIO_BASE will be bypassed. Later access to SIO_DIV will crash.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions