Skip to content

Fix out of bound load and stores#21

Open
wentasah wants to merge 1 commit intovojirt:masterfrom
CTU-IIG:fix-hog-memory-corruption
Open

Fix out of bound load and stores#21
wentasah wants to merge 1 commit intovojirt:masterfrom
CTU-IIG:fix-hog-memory-corruption

Conversation

@wentasah
Copy link
Copy Markdown
Contributor

FHoG calculation uses SSE instructions that operate on multiple values
at once. Therefore, depending on the size of the patch, it can happen
that the SSE instructions access (both for reading and writing) the
data outside of the image boundaries. This causes memory corruptions
and crashes.

We fix this problem by allocating more memory so that out-of-image
accesses always touch valid memory.

FHoG calculation uses SSE instructions that operate on multiple values
at once. Therefore, depending on the size of the patch, it can happen
that the SSE instructions access (both for reading and writing) the
data outside of the image boundaries. This causes memory corruptions
and crashes.

We fix this problem by allocating more memory so that out-of-image
accesses always touch valid memory.
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