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

chore(audit)_: Added fail conditions for malformed string ints #6289

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Samyoul
Copy link
Member

@Samyoul Samyoul commented Jan 28, 2025

resolves https://github.com/status-im/least-authority-audit/issues/13

In a few places we've not handled the fail condition for big.Int.SetString(string), this PR adds the handling as per the audit feedback. See the above link for more details.

@Samyoul Samyoul self-assigned this Jan 28, 2025
@Samyoul Samyoul requested review from alaibe, Cuteivist, saledjenic and a team January 28, 2025 10:25
@status-im-auto
Copy link
Member

status-im-auto commented Jan 28, 2025

Jenkins Builds

Click to see older builds (10)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 3544dba #1 2025-01-28 10:29:22 ~4 min macos 📦zip
✔️ 3544dba #1 2025-01-28 10:29:25 ~4 min ios 📦zip
✔️ 3544dba #1 2025-01-28 10:30:25 ~5 min windows 📦zip
✔️ 3544dba #1 2025-01-28 10:30:26 ~5 min macos 📦zip
✔️ 3544dba #1 2025-01-28 10:31:05 ~6 min android 📦aar
✔️ 3544dba #1 2025-01-28 10:31:51 ~6 min linux 📦zip
✔️ 3544dba #1 2025-01-28 10:33:44 ~8 min tests-rpc 📄log
✖️ 3544dba #1 2025-01-28 10:34:53 ~9 min tests 📄log
✖️ 3544dba #2 2025-01-28 11:10:24 ~1 min tests 📄log
✖️ 3544dba #3 2025-01-29 14:24:49 ~39 sec tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 37cf705 #4 2025-02-06 14:59:53 ~3 min tests 📄log
✔️ 37cf705 #2 2025-02-06 15:00:07 ~4 min macos 📦zip
✔️ 37cf705 #2 2025-02-06 15:00:32 ~4 min ios 📦zip
✔️ 37cf705 #2 2025-02-06 15:00:56 ~5 min macos 📦zip
✔️ 37cf705 #2 2025-02-06 15:01:20 ~5 min tests-rpc 📄log
✔️ 37cf705 #2 2025-02-06 15:01:20 ~5 min windows 📦zip
✔️ 37cf705 #2 2025-02-06 15:01:20 ~5 min linux 📦zip
✔️ 37cf705 #2 2025-02-06 15:01:55 ~6 min android 📦aar
✔️ 5c73ebb #3 2025-02-06 15:43:11 ~3 min windows 📦zip
✔️ 5c73ebb #3 2025-02-06 15:43:24 ~4 min macos 📦zip
✔️ 5c73ebb #3 2025-02-06 15:43:47 ~4 min ios 📦zip
✔️ 5c73ebb #3 2025-02-06 15:44:17 ~5 min macos 📦zip
✔️ 5c73ebb #3 2025-02-06 15:45:18 ~6 min android 📦aar
✔️ 5c73ebb #3 2025-02-06 15:49:05 ~9 min tests-rpc 📄log
✔️ 5c73ebb #3 2025-02-06 15:50:16 ~11 min linux 📦zip
✔️ 5c73ebb #5 2025-02-06 16:10:26 ~31 min tests 📄log

@Samyoul Samyoul force-pushed the chore/bit-int-err-check branch from 3544dba to 37cf705 Compare February 6, 2025 14:55
@Samyoul Samyoul force-pushed the chore/bit-int-err-check branch from 37cf705 to 5c73ebb Compare February 6, 2025 15:38
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

Attention: Patch coverage is 25.00000% with 18 lines in your changes missing coverage. Please review.

Project coverage is 60.29%. Comparing base (0526d18) to head (5c73ebb).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
services/wallet/activity/details.go 0.00% 8 Missing ⚠️
services/wallet/reader.go 50.00% 2 Missing and 2 partials ⚠️
...let/router/pathprocessor/processor_bridge_celar.go 0.00% 3 Missing ⚠️
services/wallet/router/fees/estimated_time.go 50.00% 1 Missing and 1 partial ⚠️
common/errors.go 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (25.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6289      +/-   ##
===========================================
- Coverage    60.35%   60.29%   -0.07%     
===========================================
  Files          845      846       +1     
  Lines       111357   111370      +13     
===========================================
- Hits         67211    67147      -64     
- Misses       36310    36394      +84     
+ Partials      7836     7829       -7     
Flag Coverage Δ
functional 0.45% <0.00%> (-0.01%) ⬇️
unit 60.30% <25.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
protocol/identity/utils.go 90.47% <ø> (ø)
common/errors.go 0.00% <0.00%> (ø)
services/wallet/router/fees/estimated_time.go 39.06% <50.00%> (-1.27%) ⬇️
...let/router/pathprocessor/processor_bridge_celar.go 0.00% <0.00%> (ø)
services/wallet/reader.go 77.66% <50.00%> (-1.05%) ⬇️
services/wallet/activity/details.go 62.23% <0.00%> (-1.80%) ⬇️

... and 42 files with indirect coverage changes

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.

4 participants