Skip to content

Commit 91a2721

Browse files
authored
Merge branch 'main' into mariano/batch-sender
2 parents feb165e + 58a1635 commit 91a2721

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.70.1"
2+
".": "4.70.2"
33
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.70.2](https://github.com/cloudquery/plugin-sdk/compare/v4.70.1...v4.70.2) (2024-12-05)
9+
10+
11+
### Bug Fixes
12+
13+
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.13.4 ([#1992](https://github.com/cloudquery/plugin-sdk/issues/1992)) ([cd4dc4b](https://github.com/cloudquery/plugin-sdk/commit/cd4dc4bcfb9eb42227bce7cf77899a5a31635a20))
14+
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.25.5 ([#1991](https://github.com/cloudquery/plugin-sdk/issues/1991)) ([037a6d9](https://github.com/cloudquery/plugin-sdk/commit/037a6d97ccf8dbcf6f5a9a28fa6f945f8892af25))
15+
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.25.6 ([#1994](https://github.com/cloudquery/plugin-sdk/issues/1994)) ([32855ea](https://github.com/cloudquery/plugin-sdk/commit/32855ea19975675bba2ed4cfaf1a00013f49a7b5))
16+
* Handle integer overflow ([#1996](https://github.com/cloudquery/plugin-sdk/issues/1996)) ([6af9c22](https://github.com/cloudquery/plugin-sdk/commit/6af9c22a82b3872a3fbffdc7f70c61d63450be6e))
17+
818
## [4.70.1](https://github.com/cloudquery/plugin-sdk/compare/v4.70.0...v4.70.1) (2024-12-02)
919

1020

configtype/time.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package configtype
33
import (
44
"encoding/json"
55
"fmt"
6+
"math"
67
"regexp"
78
"strconv"
89
"time"
@@ -237,10 +238,19 @@ func (d *timeDuration) addUnit(unit string, number int64) error {
237238
case "hour", "hours":
238239
d.duration += time.Hour * time.Duration(number)
239240
case "day", "days":
241+
if number < math.MinInt || number > math.MaxInt {
242+
return fmt.Errorf("invalid %s value: %d. Out of bounds", unit, number)
243+
}
240244
d.days += int(number)
241245
case "month", "months":
246+
if number < math.MinInt || number > math.MaxInt {
247+
return fmt.Errorf("invalid %s value: %d. Out of bounds", unit, number)
248+
}
242249
d.months += int(number)
243250
case "year", "years":
251+
if number < math.MinInt || number > math.MaxInt {
252+
return fmt.Errorf("invalid %s value: %d. Out of bounds", unit, number)
253+
}
244254
d.years += int(number)
245255
default:
246256
return fmt.Errorf("invalid unit: %q", unit)

examples/simple_plugin/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22.7
44

55
require (
66
github.com/apache/arrow/go/v17 v17.0.0
7-
github.com/cloudquery/plugin-sdk/v4 v4.70.1
7+
github.com/cloudquery/plugin-sdk/v4 v4.70.2
88
github.com/rs/zerolog v1.33.0
99
)
1010

0 commit comments

Comments
 (0)