-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dynamoevents: Fix panic if cursor is outside of [fromUTC,toUTC] range (…
…#42247) If clients send a request where the cursor falls outside of the [From.UTC,To.UTC] interval, dynamodbevents will panic after consuming all possible values in `dates`. This happens because `dates` is an array of full days between `[from,to]`. The patched for loop tried to discard days that were already consumed by the latest request but if the cursor fall outside of this window, the loop consumed all days and eventually panic. Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
- Loading branch information
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters