Repository navigation
Fix integer overflow - #84
Conversation
…ws ARM and overflows here Signed-off-by: Apurv Barve <[email protected]>
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
@brandonweeks, @bourey, @sethvargo : Can one of you look at this small code change and approve? |
|
Hey hey,
|
Signed-off-by: Apurv Barve <[email protected]>
|
Thanks @sethvargo for the comments. This is the error reported with Windows build: env: keyspec returned by cryptAcquireCertificatePrivateKey is unsigned int while ncryptKeySpec is defined as untyped constant and when printed with %d will result in overflow. I have explicitly defined ncryptKeySpec as uint32 now. |
|
Can you share the full stack trace please? |
|
Here is the error generated by pipeline which uses this code - https://github.com/containerd/containerd/actions/runs/15305983162/job/43058899959?pr=11909 |
|
Okay this seems like a more reasonable fix. I still don't have permissions to approve it though :) |
|
Thanks. |
PiperOrigin-RevId: 771250112

Use %v as formatter instead of %d to prevent overflow on Windows ARM which treats int as 32 bit value.