Skip to content

sync with upstream release/v0.47.x#418

Merged
yihuang merged 12 commits into
crypto-org-chain:release/v0.47.xfrom
yihuang:release/v0.47.x
May 16, 2024
Merged

sync with upstream release/v0.47.x#418
yihuang merged 12 commits into
crypto-org-chain:release/v0.47.xfrom
yihuang:release/v0.47.x

Conversation

@yihuang

@yihuang yihuang commented May 13, 2024

Copy link
Copy Markdown

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

@yihuang yihuang force-pushed the release/v0.47.x branch from 4ad7ee0 to 9674a2c Compare May 13, 2024 05:02
@yihuang yihuang requested a review from mmsqe May 13, 2024 05:02
Comment thread go.mod Outdated

@mmsqe mmsqe left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yihuang yihuang enabled auto-merge (squash) May 13, 2024 07:42
@yihuang yihuang force-pushed the release/v0.47.x branch from 3260348 to f0bf4ab Compare May 13, 2024 07:49
Comment thread x/group/keeper/keeper.go Fixed
Comment thread crypto/keyring/keyring.go Fixed
Comment thread x/group/keeper/keeper.go
ProposalId: proposal.Id,
Status: proposal.Status,
TallyResult: &proposal.FinalTallyResult,
TallyResult: &proposal.FinalTallyResult, //nolint: gosec

Check failure

Code scanning / gosec

Implicit memory aliasing in for loop.

Implicit memory aliasing in for loop.
Comment thread crypto/keyring/keyring.go
}

if err := os.WriteFile(dir+"/keyhash", passwordHash, 0o555); err != nil {
if err := os.WriteFile(dir+"/keyhash", passwordHash, 0o555); err != nil { //nolint: gosec

Check failure

Code scanning / gosec

Expect WriteFile permissions to be 0600 or less

Expect WriteFile permissions to be 0600 or less
Comment thread .golangci.yml
yihuang and others added 3 commits May 14, 2024 15:04
Co-authored-by: mmsqe <mavis@crypto.com>
Signed-off-by: yihuang <huang@crypto.com>
Comment thread internal/conv/string.go
bufHdr.Cap = sHdr.Len
bufHdr.Len = sHdr.Len
return buf
return unsafe.Slice(unsafe.StringData(s), len(s)) // ref https://github.com/golang/go/issues/53003#issuecomment-1140276077

Check warning

Code scanning / gosec

Use of unsafe calls should be audited

Use of unsafe calls should be audited
Comment thread internal/conv/string.go
bufHdr.Cap = sHdr.Len
bufHdr.Len = sHdr.Len
return buf
return unsafe.Slice(unsafe.StringData(s), len(s)) // ref https://github.com/golang/go/issues/53003#issuecomment-1140276077

Check warning

Code scanning / gosec

Use of unsafe calls should be audited

Use of unsafe calls should be audited
@yihuang yihuang merged commit d00edcb into crypto-org-chain:release/v0.47.x May 16, 2024
@yihuang yihuang deleted the release/v0.47.x branch May 16, 2024 03: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.

3 participants