Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
D7018E-Assignment-4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fredrik Pettersson
D7018E-Assignment-4
Commits
a9e8f007
Commit
a9e8f007
authored
7 years ago
by
DevDoggo
Browse files
Options
Downloads
Patches
Plain Diff
Formulated thoughts on memory safety
parent
9154ed49
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-19
8 additions, 19 deletions
README.md
with
8 additions
and
19 deletions
README.md
+
8
−
19
View file @
a9e8f007
#
`cortex-m-quickstart`
#
Memory Safety Discussion
> A template for building applications for ARM Cortex-M microcontrollers
First of all, we do use unsafe Rust code. This means that the safety of our static global variables is at risk!
If we do not take action to prevent differet functions from manipulating the variables at the same time,
without some form of mutual exclusive access to the variables,
then they may create undefined behavior and errors.
Because the compiler won't check unsafe code,
this could potentially in a worst case lead to information leakage or perhaps physical damage to infrastructure or people,
all depending on what the code is able to affect.
# [Documentation](https://docs.rs/cortex-m-quickstart)
# License
Licensed under either of
-
Apache License, Version 2.0 (
[
LICENSE-APACHE
](
LICENSE-APACHE
)
or
http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (
[
LICENSE-MIT
](
LICENSE-MIT
)
or http://opensource.org/licenses/MIT)
at your option.
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment