Ritik Kumar

Results issues of Ritik Kumar

--- - **Subsystem:** Gamestate Simulation & Curves (`libopenage/curve`) - **Affected File:** [`libopenage/curve/keyframe_container.h`](file:///C:/Users/ritik/.gemini/antigravity/scratch/openage/libopenage/curve/keyframe_container.h#L401-L417), lines 401–417 - **Severity:** High (Simulation Logic Error / Gamestate Inconsistency) ### Description & Root Cause In openage's...

--- - **Subsystem:** Pathfinding Navigation Engine (`libopenage/pathfinding`) - **Affected File:** [`libopenage/pathfinding/grid.cpp`](file:///C:/Users/ritik/.gemini/antigravity/scratch/openage/libopenage/pathfinding/grid.cpp#L30-L41), lines 30–41 - **Severity:** High (Unconditional Initialization Crash) ### Description & Root Cause In `libopenage/pathfinding/grid.cpp`, `Grid` provides a constructor...

--- - **Subsystem:** Python Core Utilities (`openage/util/ordered_set.py`) - **Affected File:** [`openage/util/ordered_set.py`](file:///C:/Users/ritik/.gemini/antigravity/scratch/openage/openage/util/ordered_set.py#L83-L94), lines 83–94 - **Severity:** Medium-High (Unhandled Exceptions / Data Processing Failure) ### Description & Root Cause `openage.util.ordered_set.OrderedSet` defines an...

--- - **Subsystem:** Python Core Utilities (`openage/util/ordered_set.py`) - **Affected File:** [`openage/util/ordered_set.py`](file:///C:/Users/ritik/.gemini/antigravity/scratch/openage/openage/util/ordered_set.py#L83-L94), lines 83–94 - **Severity:** Medium-High (Unhandled Exceptions / Data Processing Failure) ### Description & Root Cause `openage.util.ordered_set.OrderedSet` defines an...

--- ### Affected File & Lines [`pelican/utils.py#L860-L862`](pelican/utils.py#L860-L862) ### Description In `FileChangeFilter.__call__`, incoming file change paths are validated against `self.ignore_file_patterns` using: ```python return super().__call__(change, path) and not any( fnmatch.fnmatch(os.path.abspath(path), p) for...

bug

--- ### Affected File & Lines [`pelican/server.py#L84-L94`](pelican/server.py#L84-L94) ### Description In `ComplexHTTPRequestHandler.do_GET(self)`: ```python def do_GET(self): original_path = self.path.split("?", 1)[0] self.path = self.get_path_that_exists(original_path) if not self.path: return server.SimpleHTTPRequestHandler.do_GET(self) ``` When a client...

bug

--- ### Affected File & Lines [`pelican/tools/pelican_import.py#L92-L95`](pelican/tools/pelican_import.py#L92-L95) ### Description In `decode_wp_content`: ```python def _preserve_newline(match): return match.group(0).replace("\n", "") content = re.sub(r"/\n", content) content = content.replace("", "\n") ``` The regex `r"/

bug

--- ### Affected File & Lines [`pelican/tools/pelican_themes.py#L185-L201`](pelican/tools/pelican_themes.py#L185-L201) ### Description In `pelican-themes.py`, the `remove` function implements directory deletion: ```python def remove(theme_name, v=False): theme_name = theme_name.replace("/", "") target = os.path.join(_THEMES_PATH, theme_name) ......

bug

- **Affected File**: `pelican/utils.py` (lines 51–57) - **Call Sites**: `pelican/contents.py` (line 218), `pelican/writers.py` (lines 176, 227) - **Classification**: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')...

bug

- **Affected File**: `pelican/server.py` (lines 84–94, 101–113) - **Classification**: HTTP Protocol Compliance & Reliability #### Root Cause Analysis Pelican's development server (`pelican -l` / `pelican --listen`) relies on `ComplexHTTPRequestHandler`. In...

bug