Wriar / ShadowBox

Development Repository of ShadowBox, an open-source zero-knowledge file storage & encryption platform written in NodeJS
MIT License
1 stars 0 forks source link

(JS-0040) Race condition in compound assignment #4

Open Wriar opened 1 year ago

Wriar commented 1 year ago

Description

When writing asynchronous code, it is possible to create subtle race condition bugs. Consider the following example:

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/Wriar/ShadowBox-Dev/issue/JS-0040/occurrences/

Wriar commented 1 year ago

Fixed with locking code, awaiting verification.