Skip to content

Enhance#5

Merged
itsfuad merged 5 commits intostablefrom
main
Apr 1, 2025
Merged

Enhance#5
itsfuad merged 5 commits intostablefrom
main

Conversation

@itsfuad
Copy link
Copy Markdown
Owner

@itsfuad itsfuad commented Apr 1, 2025

This pull request includes several changes to enhance security, improve error handling, and add tests for the compiler detection functionality. The most important changes include switching to html/template for security, adding context to command executions, centralizing error messages, and adding comprehensive tests.

Security Improvements:

  • binding/generator.go: Switched from text/template to html/template for defining the template for Python binding to enhance security. [1] [2]

Command Execution Enhancements:

Error Handling Improvements:

Testing Enhancements:

  • compiler/detect_test.go: Added comprehensive tests for compiler detection, including mock compilers and validation of include paths.

Funding Information:

itsfuad added 5 commits March 24, 2025 20:48
…r Python binding security and validate compiler paths before execution.
… command execution and ensure absolute paths for compiler and batch files are validated before running commands.
…Add *.obj to .gitignore and enhance README with clearer installation and usage instructions, including automatic compiler detection and updated command line arguments.
@itsfuad itsfuad merged commit 4122ee2 into stable Apr 1, 2025
3 checks passed
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