Skip to content

Inverted secure mode validation in get_i32 #1049

@rennergade

Description

@rennergade

src/typemap/src/datatype_conversion.rs:62-75

The validation in get_i32 is backwards. It returns the value when the upper 32 bits are non-zero (dirty input) and panics when they are zero (clean input).

The condition (arg & 0xFFFFFFFF_00000000) != 0 should be == 0.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions