Intent-Code Divergence
Medium
- Confidence
- 89% confidence
- Finding
- The function validates the input path but passes `output_dir` directly to `opendataloader_pdf.convert` without constraining it to a safe workspace location. If an attacker controls this argument, they may cause files to be written outside the intended directory tree or overwrite arbitrary writable paths, depending on the library's behavior; the comment explicitly defers sanitization to the library, which is not a safe assumption.
