Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Remove unnecessary node lists in NodeList module to improve performance" #23

Closed
wants to merge 2 commits into from

Conversation

jairajdev
Copy link
Contributor

Reverts #16

Copy link

linear bot commented May 16, 2024

@jairajdev jairajdev requested a review from tanuj-shardeum May 16, 2024 14:43
@@ -129,16 +135,18 @@
break
}
/* eslint-disable security/detect-object-injection */
byPublicKey.set(node.publicKey, node)
byPublicKey[node.publicKey] = node

Check failure

Code scanning / CodeQL

Remote property injection High

A property name to write to depends on a
user-provided value
.
A property name to write to depends on a
user-provided value
.
if (entry) {
entry.id = node.id
byId.set(node.id, node.publicKey)
publicKeyToId[node.publicKey] = node.id

Check failure

Code scanning / CodeQL

Remote property injection High

A property name to write to depends on a
user-provided value
.
A property name to write to depends on a
user-provided value
.
if (entry) {
entry.id = node.id
byId.set(node.id, node.publicKey)
publicKeyToId[node.publicKey] = node.id
byId[node.id] = node

Check failure

Code scanning / CodeQL

Remote property injection High

A property name to write to depends on a
user-provided value
.
@@ -166,16 +176,18 @@
break
}

byPublicKey.set(node.publicKey, node)
byPublicKey[node.publicKey] = node

Check failure

Code scanning / CodeQL

Remote property injection High

A property name to write to depends on a
user-provided value
.
if (entry) {
entry.id = node.id
byId.set(node.id, node.publicKey)
publicKeyToId[node.publicKey] = node.id

Check failure

Code scanning / CodeQL

Remote property injection High

A property name to write to depends on a
user-provided value
.
if (entry) {
entry.id = node.id
byId.set(node.id, node.publicKey)
publicKeyToId[node.publicKey] = node.id
byId[node.id] = node

Check failure

Code scanning / CodeQL

Remote property injection High

A property name to write to depends on a
user-provided value
.
delete byPublicKey[key]
const id = publicKeyToId[key]
activeListByIdSorted = activeListByIdSorted.filter((node) => node.id !== id)
delete byId[id]

Check failure

Code scanning / CodeQL

Remote property injection High

A property name to write to depends on a
user-provided value
.
@jairajdev jairajdev closed this May 17, 2024
@jairajdev jairajdev reopened this May 17, 2024
@jairajdev jairajdev closed this May 17, 2024
@mhanson-github mhanson-github deleted the revert-16-BLUE-56 branch September 7, 2024 05:55
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.

2 participants