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

Dependabot Alert: Predictable results in nanoid generation when given non-integer values #762

Open
JennaySDavis opened this issue Dec 18, 2024 · 2 comments

Comments

@JennaySDavis
Copy link
Contributor

When a nanoid is called with a fractional value, there are several undesirable effects:

  • in browser and non-secure, the code infinite loops on while (size--)
  • in node, the value of poolOffset becomes fractional, causing calls to nanoid to return zeroes until the pool is next filled
  • if the first call in the node is a fractional argument, the initial buffer allocation fails with an error
@JennaySDavis
Copy link
Contributor Author

JennaySDavis commented Jan 2, 2025

Acceptance Criteria

Pass/Fail Description
Pass Regression Testing of Program Website

Comments/Additional Notes
N/A

ADA Compliance (Automated scan via Chrome Lighthouse)

Criteria Score
Performance 99
Accessibility 100
Best Practices 100

Passed 01/02/2025 - JSD

@johnbeallgsa
Copy link
Contributor

Thanks for talking about this in Demo. Moving to Done.

felder101 added a commit that referenced this issue Jan 9, 2025
Sprint 46 issues include:

Sales, Transactions, Card/Account Holder Data #768
Senate Judiciary Committee hearing Link #755
Dependabot Alert: Predictable results in nanoid generation when given non-integer values #762
Program Statistics #769
Georgia Tax Updates #764
felder101 added a commit that referenced this issue Jan 13, 2025
Sprint 46 issues include:

Sales, Transactions, Card/Account Holder Data #768
Senate Judiciary Committee hearing Link #755
Dependabot Alert: Predictable results in nanoid generation when given non-integer values #762
Program Statistics #769
Georgia Tax Updates #764
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants