palladius / palladius/antigravity-ruby-sdk

🐛 [Security] Type safety and error handling in version sorting and temp file creation

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Ruby
Stars
0
Forks
0
Avg merge
4m
Merged PRs (30d)
1

Description

Description

  1. Gem::Version.new(v) rescue v in BinaryFetcher returned raw strings on invalid gem versions, causing ArgumentError (comparison of Gem::Version with String) when sorting.
  2. unzip command return value was ignored during wheel extraction.
  3. Temporary directory creation in LocalConnection used predictable /tmp/antigravity-ruby-#{$$} instead of Dir.mktmpdir.
  4. YAML.safe_load in Skill.load raised unhandled Psych::SyntaxError instead of standard ArgumentError.

Fix

  • Used Gem::Version.correct? before parsing versions.
  • Checked system("unzip", ...) return code.
  • Switched to Dir.mktmpdir("antigravity-ruby-").
  • Rescued Psych::SyntaxError in Skill to wrap in ArgumentError.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating BinaryFetcher, LocalConnection, and Skill, then inspect the version sorting, wheel extraction, temporary directory, and YAML loading paths described in the issue. Verify that invalid versions sort safely, unzip failures are handled, temporary directories are unpredictable, and malformed YAML is exposed as ArgumentError.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.