Skip to content

Commit

Permalink
ignore int conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
vhvb1989 committed Feb 15, 2025
1 parent e9501ee commit 4e575c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/azd/pkg/auth/cache_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (c *encryptedCache) Read(key string) ([]byte, error) {
// to the new format.

encryptedBlob = windows.DataBlob{
//nolint:gosec // G115: integer overflow conversion int -> uint32
Size: uint32(len(val)),
Data: &val[0],
}
Expand All @@ -100,6 +101,7 @@ func (c *encryptedCache) Read(key string) ([]byte, error) {
}

encryptedBlob = windows.DataBlob{
//nolint:gosec // G115: integer overflow conversion int -> uint32
Size: uint32(len(data)),
Data: &data[0],
}
Expand Down
1 change: 1 addition & 0 deletions cli/azd/pkg/exec/cmdtree_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func (o *CmdTree) Start() error {
return fmt.Errorf("failed to set job object info: %w", err)
}

//nolint:gosec // G115: integer overflow conversion int -> uint32
process, err := windows.OpenProcess(windows.PROCESS_SET_QUOTA|windows.PROCESS_TERMINATE, false, uint32(o.Process.Pid))
if err != nil {
return fmt.Errorf("failed to open process: %w", err)
Expand Down

0 comments on commit 4e575c7

Please sign in to comment.