forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Validate mpy load #1972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Validate mpy load #1972
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
330517b
Validate portions of mpy load to detect corruption
tannewt 77355cb
Update translations
tannewt 2494bfd
Validate raw code and mpy read length
tannewt 6d2072f
Fix tests
tannewt 1f105e0
Update frozen libraries to save space
tannewt fe507db
Shrink pIRkey build down.
tannewt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule Adafruit_CircuitPython_CircuitPlayground
updated
37 files
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-13 17:34-0700\n" | ||
"POT-Creation-Date: 2019-06-25 17:53-0700\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -460,6 +460,14 @@ msgstr "" | |
msgid "Command must be an int between 0 and 255" | ||
msgstr "" | ||
|
||
#: py/persistentcode.c | ||
msgid "Corrupt .mpy file" | ||
msgstr "" | ||
|
||
#: py/emitglue.c | ||
msgid "Corrupt raw code" | ||
msgstr "" | ||
|
||
#: ports/nrf/common-hal/bleio/UUID.c | ||
#, c-format | ||
msgid "Could not decode ble_uuid, err 0x%04x" | ||
|
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-13 17:41-0700\n" | ||
"POT-Creation-Date: 2019-06-25 17:53-0700\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -450,6 +450,14 @@ msgstr "" | |
msgid "Command must be an int between 0 and 255" | ||
msgstr "" | ||
|
||
#: py/persistentcode.c | ||
msgid "Corrupt .mpy file" | ||
msgstr "" | ||
|
||
#: py/emitglue.c | ||
msgid "Corrupt raw code" | ||
msgstr "" | ||
|
||
#: ports/nrf/common-hal/bleio/UUID.c | ||
#, c-format | ||
msgid "Could not decode ble_uuid, err 0x%04x" | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-13 17:34-0700\n" | ||
"POT-Creation-Date: 2019-06-25 17:53-0700\n" | ||
"PO-Revision-Date: 2018-12-20 22:15-0800\n" | ||
"Last-Translator: Timothy <[email protected]>\n" | ||
"Language-Team: fil\n" | ||
|
@@ -459,6 +459,14 @@ msgstr "" | |
msgid "Command must be an int between 0 and 255" | ||
msgstr "Sa gitna ng 0 o 255 dapat ang bytes." | ||
|
||
#: py/persistentcode.c | ||
msgid "Corrupt .mpy file" | ||
msgstr "" | ||
|
||
#: py/emitglue.c | ||
msgid "Corrupt raw code" | ||
msgstr "" | ||
|
||
#: ports/nrf/common-hal/bleio/UUID.c | ||
#, c-format | ||
msgid "Could not decode ble_uuid, err 0x%04x" | ||
|
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: 0.1\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-13 17:34-0700\n" | ||
"POT-Creation-Date: 2019-06-25 17:53-0700\n" | ||
"PO-Revision-Date: 2019-04-14 20:05+0100\n" | ||
"Last-Translator: Pierrick Couturier <[email protected]>\n" | ||
"Language-Team: fr\n" | ||
|
@@ -465,6 +465,14 @@ msgstr "L'entrée 'Column' doit être un digitalio.DigitalInOut" | |
msgid "Command must be an int between 0 and 255" | ||
msgstr "La commande doit être un entier entre 0 et 255" | ||
|
||
#: py/persistentcode.c | ||
msgid "Corrupt .mpy file" | ||
msgstr "" | ||
|
||
#: py/emitglue.c | ||
msgid "Corrupt raw code" | ||
msgstr "" | ||
|
||
#: ports/nrf/common-hal/bleio/UUID.c | ||
#, c-format | ||
msgid "Could not decode ble_uuid, err 0x%04x" | ||
|
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-13 17:34-0700\n" | ||
"POT-Creation-Date: 2019-06-25 17:53-0700\n" | ||
"PO-Revision-Date: 2018-10-02 16:27+0200\n" | ||
"Last-Translator: Enrico Paganin <[email protected]>\n" | ||
"Language-Team: \n" | ||
|
@@ -460,6 +460,14 @@ msgstr "" | |
msgid "Command must be an int between 0 and 255" | ||
msgstr "I byte devono essere compresi tra 0 e 255" | ||
|
||
#: py/persistentcode.c | ||
msgid "Corrupt .mpy file" | ||
msgstr "" | ||
|
||
#: py/emitglue.c | ||
msgid "Corrupt raw code" | ||
msgstr "" | ||
|
||
#: ports/nrf/common-hal/bleio/UUID.c | ||
#, c-format | ||
msgid "Could not decode ble_uuid, err 0x%04x" | ||
|
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-13 17:34-0700\n" | ||
"POT-Creation-Date: 2019-06-25 17:53-0700\n" | ||
"PO-Revision-Date: 2019-03-19 18:37-0700\n" | ||
"Last-Translator: Radomir Dopieralski <[email protected]>\n" | ||
"Language-Team: pl\n" | ||
|
@@ -453,6 +453,14 @@ msgstr "Kolumny muszą być typu digitalio.DigitalInOut" | |
msgid "Command must be an int between 0 and 255" | ||
msgstr "Komenda musi być int pomiędzy 0 a 255" | ||
|
||
#: py/persistentcode.c | ||
msgid "Corrupt .mpy file" | ||
msgstr "" | ||
|
||
#: py/emitglue.c | ||
msgid "Corrupt raw code" | ||
msgstr "" | ||
|
||
#: ports/nrf/common-hal/bleio/UUID.c | ||
#, c-format | ||
msgid "Could not decode ble_uuid, err 0x%04x" | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return value is asize_t
, not anmp_obj_t
. If the compiler is forcing you to return something, even though it will never get executed, just return 0, I'd say.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind, confused by diff listing with missing lines.