Skip to content

shell/rtc: Fix out of bounds access; document error behavior [backport 2023.01]#19144

Merged
bors[bot] merged 1 commit intoRIOT-OS:2023.01-branchfrom
kaspar030:backport/2023.01/rtc-dow-overflow
Jan 14, 2023
Merged

shell/rtc: Fix out of bounds access; document error behavior [backport 2023.01]#19144
bors[bot] merged 1 commit intoRIOT-OS:2023.01-branchfrom
kaspar030:backport/2023.01/rtc-dow-overflow

Conversation

@kaspar030
Copy link
Copy Markdown
Contributor

Backport of #19141

Contribution description

Testing procedure

Should be trivial enough, especially as the difference is hard to spot interactively.

On native, run the default example (and wait for the traffic to settle).

Then, run

> rtc poweron
> rtc settime 2022-01-01 00:00:00
> rtc settime 2022-99-01 00:00:00

Both still work, but the latter doesn't access unassigned memory any more

Issues/PRs references

This fixes an issue that was submitted anonymously.

@kaspar030 kaspar030 added Area: security Area: Security-related libraries and subsystems Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Jan 13, 2023
@kaspar030 kaspar030 requested a review from chrysn January 13, 2023 20:06
@kaspar030
Copy link
Copy Markdown
Contributor Author

bors merge

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Jan 13, 2023

🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@riot-ci
Copy link
Copy Markdown

riot-ci commented Jan 13, 2023

Murdock results

✔️ PASSED

2525f25 shell/rtc: Fix out of bounds access; document error behavior

Success Failures Total Runtime
6770 0 6770 11m:57s

Artifacts

bors bot added a commit that referenced this pull request Jan 13, 2023
19143: boards: common: stdio_cdc_acm: let tests wait a bit for serial port [backport 2023.01] r=kaspar030 a=kaspar030

# Backport of #19128



19144: shell/rtc: Fix out of bounds access; document error behavior [backport 2023.01] r=kaspar030 a=kaspar030

# Backport of #19141

### Contribution description



### Testing procedure

Should be trivial enough, especially as the difference is hard to spot interactively.

On native, run the default example (and wait for the traffic to settle).

Then, run

```
> rtc poweron
> rtc settime 2022-01-01 00:00:00
> rtc settime 2022-99-01 00:00:00
```

Both still work, but the latter doesn't access unassigned memory any more

### Issues/PRs references

This fixes an issue that was submitted anonymously.

Co-authored-by: Martine Lenders <[email protected]>
Co-authored-by: chrysn <[email protected]>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Jan 13, 2023

Build failed (retrying...):

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Jan 14, 2023

Build succeeded:

@bors bors bot merged commit 8ff8bc2 into RIOT-OS:2023.01-branch Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: security Area: Security-related libraries and subsystems Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants