GitShow/ljharb/side-channel-list
ljharb

side-channel-list

Store information about any JS value in a side channel, using a linked list.

by ljharb
Star on GitHubForknpm

JavaScript

3 stars3 forks1 contributorQuiet · 2mo agoSince 2024MIT

Meet the team

See all 1 on GitHub →
ljharb
ljharb10 contributions

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
ChALkeR
linked list impl is wrongClosedIssue

Reproduced: Deleting the first node in a multi-node list incorrectly resets to , discarding all remaining nodes. The condition checks whether the deleted node was the head of the list, but doesn't verify the list is actually empty. After deletion of the head node, still points to remaining nodes, but is set to , silently losing all other stored key-value pairs. (confidence: 9/10) Data structure: is a sentinel/root node (no key/value), and actual data nodes are linked via . So the "first data node" is . Scenario: List has two entries: set('a', 1) then set('b', 2). After these operations: , , Now delete('b'): 1. → 2. → calls 3. In : , . → true. → (correctly removes nodeB from the list) Since is true, we skip the move-to-head logic. Returns . 4. Back in : , , so → true 5. → $o is reset to undefined!* But was pointing to (which still has key 'a'). By setting , we've lost nodeA entirely. The bug is real: the intent of the check seems to be "if the list is now empty, clean up $o", but only checks if the deleted node was the first* data node, not whether the list is empty after deletion. The correct check should be something like (i.e., the sentinel has no more children).

ChALkeR · 2mo ago
dy1and
OutdatedFOSSLibraries older than 12 months security vulnerability in blackduckClosedIssue

Hi Team, We are getting issue in blackduck due to OutdatedFOSSLibraries older than 12 months for dependency side-channel-list as shown below. Kindly look into it and let us know if there is any plan for new version update regarding this. Best, Dyland.

dy1and · 6mo ago
Structured data for AI agents

Repository: ljharb/side-channel-list. Description: Store information about any JS value in a side channel, using a linked list. Stars: 3, Forks: 3. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Open PRs: 0, open issues: 1. Last activity: 2mo ago. Community health: 85%. Top contributors: ljharb.

·@ofershap

Replace github.com with gitshow.dev