Skip to content

Integer overflow #15

@vargac

Description

@vargac

Using helpful functions to obtain realworld and image distances may be dangerous, because of multiplication focal length by realworld distance in cm. For example X * Fxp is getPixX. Both variables are defined 16 bits wide, Fxp = 260 in example, so X should be less than 127 - that's not much.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions