Skip to content

nv-codec-headers: Harden DLL loading - #6548

Merged
sr55 merged 1 commit into
HandBrake:masterfrom
sr55:harden2
Jan 11, 2025
Merged

sr55 merged 1 commit into
HandBrake:masterfrom
sr55:harden2

Conversation

@sr55

@sr55 sr55 commented Jan 10, 2025 •

Copy link
Copy Markdown
Contributor

Description of Change:

On non-Nvidia systems, it will search the users various path folders for the dll file which is not ideal where they are user-writable.

In the context of HandBrake this is considered a low risk. Between in-app functionality and the fact we run as user-space it's somewhat moot. Either way, it's good to clean this up so that it doesn't flag.

Tested on:

  • Windows 10+ (via MinGW)
  • macOS 10.13+
  • Ubuntu Linux

ProcMon confirms it's only loading from System32 now.

…r the search path. All the relevant DLLs that nvenc/dec need should be there.
@sr55 sr55 added the Bug label Jan 10, 2025
@sr55 sr55 self-assigned this Jan 10, 2025
@sr55
sr55 merged commit fecb190 into HandBrake:master Jan 11, 2025
sr55 added a commit that referenced this pull request Jan 11, 2025
…r the search path. All the relevant DLLs that nvenc/dec need should be there. (#6548)

(cherry picked from commit fecb190)
@sr55

sr55 commented Jan 11, 2025

Copy link
Copy Markdown
Contributor Author

Also backported to 1.9.x

@sr55 sr55 added this to the 1.9.x milestone Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant