Sagar
Sagar
The `fs::createWatcher` function allocates a new `__WatcherListener` object on the heap before calling `fileWatcher->addWatch`. If `addWatch` fails, for example when the path doesn't exist or permissions are denied — it...
The `fs::openFile` function determines the next file stream ID using the current size of the `openedFiles` map: ```cpp int virtualFileId = openedFiles.size(); ``` This breaks as soon as files are...
The `os::setTray` implementation in `api/os/os.cpp` does not validate the size of the `menuItems` array before writing into a fixed-size C array (`menus`). This leads to critical memory safety issues: -...
I found a potential crash issue in the macOS WebView implementation when multiple windows are created. In lib/webview/webview.h, objc_allocateClassPair is called with fixed class names like "AppDelegate" and "WindowDelegate". This...
## Problem Most toolbar icon buttons had no aria-label, making Music Blocks inaccessible to screen reader users and failing basic WCAG 2.1 AA accessibility standards. ## Fix Added aria-label and...
**Title**: `[Dedup Store Bug] addToSet, isMember, and removeFromSet throw TypeError if key was previously set as scalar` * **Description**: Inside `backend/utils/dedupStore.js`, set operations assumed `this.memoryStore.get(key).value` was always a `Set`. If...
* **Description**: Inside `backend/utils/reportGenerator.js`, `generateJSONReport()` and `generateHTMLReport()` evaluated `files.length` directly. Passing `null` or `undefined` for `files` threw `TypeError: Cannot read properties of null (reading 'length')`.
* **Description**: Inside `backend/utils/reviewQueue.js`, `runExclusive()` set `this._exclusiveLocks.set(key, next)` *after* `await existing`. When multiple callers queued up on the active lock simultaneously, all queued callers woke up at the same time...
[Glob Utility Bug] globToRegex throws TypeError: Cannot read properties of null (reading 'length')
**Title**: `[Glob Utility Bug] globToRegex throws TypeError: Cannot read properties of null (reading 'length')` * **Description**: Inside `backend/utils/globToRegex.js`, `globToRegex(pattern)` immediately evaluated `pattern.length`. Passing `null`, `undefined`, or non-string pattern values caused...
**Title**: `[Token Validator Bug] isValidGithubToken rejects leading/trailing whitespace and classic 40-character hex PATs` * **Description**: Inside `backend/utils/tokenValidator.js`, `isValidGithubToken()` tested untrimmed strings and only allowed explicit token prefixes (`ghp_`, `github_pat_`, etc.)....