Skip to content
Snippets Groups Projects
Commit 8b4a8972 authored by Thomas Andersen's avatar Thomas Andersen Committed by Dylan Baker
Browse files

nine: Fix assert in tx_src_param


A previous commit cleaned up the asserts but the last part of
this assert looks like it got mixed up. It should have allowed
param->rel for D3DSPR_INPUT if version is 3.0. Instead it does
&& on the enum value D3DSPR_ADDR which is of course always true,
with the version check. The result is that we miss input
validation with version 3.0.

Spotted by a compile warning

Fixes: 5974401a ("st/nine: Regroup param->rel tests")
Reviewed-by: default avatarAxel Davy <davyaxel0@gmail.com>
Part-of: <!11880>
(cherry picked from commit 71a5bcb8)
parent 4f7b4ba7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment