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 2 commits 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 (34)
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
✖️ 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
✖️ a9dc4ca #4 2025-02-24 15:53:03 ~2 min tests-rpc 📄log
a9dc4ca #4 2025-02-24 15:53:44 ~3 min ios 📄log
✔️ a9dc4ca #4 2025-02-24 15:54:56 ~4 min macos 📦zip
✔️ a9dc4ca #4 2025-02-24 15:55:42 ~5 min windows 📦zip
✔️ a9dc4ca #4 2025-02-24 15:55:57 ~5 min macos 📦zip
✔️ a9dc4ca #4 2025-02-24 15:56:07 ~5 min linux 📦zip
✔️ a9dc4ca #4 2025-02-24 15:56:47 ~6 min android 📦aar
✖️ a9dc4ca #6 2025-02-24 16:21:30 ~30 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ d57c390 #5 2025-02-24 23:48:46 ~2 min android 📦aar
d57c390 #5 2025-02-24 23:49:55 ~4 min ios 📄log
✔️ d57c390 #5 2025-02-24 23:50:23 ~4 min windows 📦zip
✔️ d57c390 #5 2025-02-24 23:51:11 ~5 min macos 📦zip
✔️ d57c390 #5 2025-02-24 23:52:05 ~6 min linux 📦zip
✔️ d57c390 #5 2025-02-24 23:52:18 ~6 min macos 📦zip
d57c390 #6 2025-02-24 23:57:41 ~20 sec ios 📄log
✔️ d57c390 #5 2025-02-24 23:58:53 ~12 min tests-rpc 📄log
d57c390 #7 2025-02-25 00:01:28 ~20 sec ios 📄log
d57c390 #8 2025-02-25 00:02:35 ~20 sec ios 📄log
✔️ d57c390 #7 2025-02-25 00:17:55 ~31 min tests 📄log
d57c390 #9 2025-02-25 01:24:28 ~2 min ios 📄log
d57c390 #10 2025-02-25 15:01:46 ~19 sec ios 📄log
✔️ 299a9ef #6 2025-02-25 15:08:43 ~2 min android 📦aar
✔️ 299a9ef #11 2025-02-25 15:08:45 ~2 min ios 📦zip
✔️ 299a9ef #6 2025-02-25 15:09:52 ~3 min windows 📦zip
✔️ 299a9ef #6 2025-02-25 15:10:22 ~4 min macos 📦zip
✔️ 299a9ef #6 2025-02-25 15:10:52 ~5 min linux 📦zip
✔️ 299a9ef #6 2025-02-25 15:11:03 ~5 min macos 📦zip
✖️ 299a9ef #6 2025-02-25 15:19:06 ~13 min tests-rpc 📄log
✖️ 299a9ef #8 2025-02-25 15:38:16 ~32 min tests 📄log

@Samyoul Samyoul force-pushed the chore/bit-int-err-check branch 2 times, most recently 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 15 lines in your changes missing coverage. Please review.

Project coverage is 59.45%. Comparing base (ddcd2cd) to head (d57c390).
Report is 2 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 ⚠️

❌ 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     0.45%   59.45%   +58.99%     
============================================
  Files          824      867       +43     
  Lines       109152   112638     +3486     
============================================
+ Hits           498    66967    +66469     
+ Misses      108597    37822    -70775     
- Partials        57     7849     +7792     
Flag Coverage Δ
functional 0.45% <0.00%> (-0.01%) ⬇️
unit 59.44% <25.00%> (?)

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

Files with missing lines Coverage Δ
common/errors.go 100.00% <100.00%> (ø)
protocol/identity/utils.go 90.47% <ø> (+90.47%) ⬆️
...let/router/pathprocessor/processor_bridge_celar.go 0.00% <0.00%> (ø)
services/wallet/reader.go 77.66% <50.00%> (+77.66%) ⬆️
services/wallet/activity/details.go 62.23% <0.00%> (+62.23%) ⬆️

... and 769 files with indirect coverage changes

@Samyoul Samyoul force-pushed the chore/bit-int-err-check branch from a9dc4ca to d57c390 Compare February 24, 2025 23:45
@Samyoul
Copy link
Member Author

Samyoul commented Feb 25, 2025

Does anyone know why this upload stage of jenkins/prs/ios keeps failing?

Screenshot 2025-02-25 at 00 06 39

Maybe @siddarthkay ?

@siddarthkay
Copy link
Contributor

@Samyoul : iOS uploads should be fixed with : #6361

@Samyoul Samyoul force-pushed the chore/bit-int-err-check branch from d57c390 to 299a9ef Compare February 25, 2025 15:05
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.

5 participants