Stéphane Travostino
cdfae7d453
apps/maze: fix possible stack overflow
...
The original code this app is inspired from uses rand(), which returns
a number >= 0.
mulberry32() on the other hand can return a negative number, in which
case will overflow the accesses in the dirs array. Fix that by forcing
the result to be unsigned.
2025-12-14 10:15:04 +01:00
Toby Jaffey
2c5f1e33fe
Label
CI / test (ubuntu-latest) (push) Waiting to run
2025-12-14 03:26:41 +00:00
Toby Jaffey
079cf2c9bd
Add CI workflow to create a coverage badge via github pages
2025-12-14 03:08:59 +00:00
Toby Jaffey
cfc1286874
Regenerate binaries, now default crt0 has changed
2025-12-14 01:36:47 +00:00
Toby Jaffey
6adbc53ad9
Remove impossible states
2025-12-14 01:34:59 +00:00
Toby Jaffey
a5305d64dc
Test that invalid lX opcodes trigger mini-rv32 internal core error
2025-12-14 01:21:42 +00:00
Toby Jaffey
fe51154698
Test for lb, lbu, lw, sb, sbu, sw explicitly
2025-12-14 00:58:35 +00:00
Toby Jaffey
2037f6e575
Test memory read outside of memory and extram regions.
2025-12-14 00:32:50 +00:00
Toby Jaffey
179466eae4
Refactor
2025-12-14 00:18:06 +00:00
Toby Jaffey
173d5056a5
Completely remove UVM32_STACK_PROTECTION unless enabled (requires manually changing crt0.S), as this saves 16 bytes on every .bin
2025-12-14 00:09:32 +00:00
Toby Jaffey
c1399fbe86
Test coverage reports info
2025-12-13 23:31:43 +00:00
Toby Jaffey
aae4eacfb8
Test getslice_fixed when a buffer is requests which exceeds memory
2025-12-13 23:29:45 +00:00
Toby Jaffey
a7b480fd11
Only use stackprotection when debugging
2025-12-13 23:26:32 +00:00
Toby Jaffey
6429d2cdaf
Add test for string reading off end of extram
2025-12-13 23:24:24 +00:00
Toby Jaffey
2039de73f2
Rename getbuf to getslice
2025-12-13 23:15:06 +00:00
Toby Jaffey
b083008d7b
Add test for reading slice in extram which is out of bounds
2025-12-13 23:10:49 +00:00
Toby Jaffey
18d787a7b9
Add test for extram becoming invalid while reading an "unterminated" buffer (slice)
2025-12-13 23:04:58 +00:00
Toby Jaffey
d1eace7b93
Improved warning message
2025-12-13 22:58:42 +00:00
Toby Jaffey
abc7a2c0ad
Merge branch 'main' into cov
CI / test (ubuntu-latest) (push) Waiting to run
2025-12-13 22:25:08 +00:00
Toby Jaffey
1c9e9296be
xxd -n (set variable name) doesn't exist on all systems, use shell utilities to build the headers
...
Fixes #1
2025-12-13 22:20:38 +00:00
Toby Jaffey
bf80e58bd5
Add CI badge
2025-12-13 22:03:50 +00:00
Toby Jaffey
608a009fa2
Try different path for coverage md, use buildkit
2025-12-13 21:39:08 +00:00
Toby Jaffey
f6afd59bbf
Publish code cov artefact
2025-12-13 21:30:46 +00:00
Toby Jaffey
bee38ce935
Revert "Attempt to add coverage badge"
...
This reverts commit 6a2bfceabc .
2025-12-13 20:14:10 +00:00
Toby Jaffey
6a2bfceabc
Attempt to add coverage badge
2025-12-13 20:02:21 +00:00
Toby Jaffey
6434f0b0cb
Smoke test of getProgramCounter
2025-12-13 19:21:05 +00:00
Toby Jaffey
5667598427
Test uvm32_getMemory() in a tautological manner
2025-12-13 19:19:39 +00:00
Toby Jaffey
99c0925db5
Test for invalid uvm32_arg_t
2025-12-13 19:17:58 +00:00
Toby Jaffey
59ade881c3
uvm32_hasEnded() test
2025-12-13 19:15:06 +00:00
Toby Jaffey
0018bdd249
Add test of reading cstring syscall argument which never terminates before hitting end of ram
2025-12-13 19:12:24 +00:00
Toby Jaffey
b1b4cbf583
Fix bug where memory was being used instead of extram when reading cstring from extram
2025-12-13 18:46:28 +00:00
Toby Jaffey
8a0604fc8d
abs path
2025-12-13 18:22:02 +00:00
Toby Jaffey
faab397178
Remove accidental make clean on tests
2025-12-13 18:16:00 +00:00
Toby Jaffey
d72955690f
Add test for extram being removed then invalid pointer being followed
2025-12-13 18:10:50 +00:00
Toby Jaffey
5b33478cad
Coverage path
2025-12-13 18:10:32 +00:00
Toby Jaffey
c5470bc279
YAML hell
2025-12-13 18:05:40 +00:00
Toby Jaffey
92913ab478
Add test for reading code which is too large
2025-12-13 18:02:43 +00:00
Toby Jaffey
f2c903cfb6
Coverage wildcard
2025-12-13 17:59:40 +00:00
Toby Jaffey
a9af18488e
Merge branch 'main' of github.com:ringtailsoftware/uvm32
2025-12-13 17:54:47 +00:00
Toby Jaffey
2e1f4d3f93
Generate coverage report
2025-12-13 17:53:55 +00:00
Toby Jaffey
1e5555f66d
Unify all tests to use same common makefile includes
2025-12-13 17:27:24 +00:00
Toby Jaffey
903167231f
Fix internal memcpy/memset to have standard libc prototypes
2025-12-13 15:52:27 +00:00
Toby Jaffey
125c79176e
Move section
2025-12-12 21:56:20 +00:00
Toby Jaffey
f8f7627eb8
Update README.
...
Add license
2025-12-12 21:50:33 +00:00
Toby Jaffey
789cd74516
Disable stack canary by default
2025-12-12 21:01:40 +00:00
Toby Jaffey
3ecd16c8bf
Update links
2025-12-12 20:52:54 +00:00
Toby Jaffey
8c97057809
Make extram uint8_t
2025-12-12 20:51:39 +00:00
Toby Jaffey
8158ac647c
Renaming and documentating header
2025-12-12 20:42:26 +00:00
Toby Jaffey
9880eadf4f
Markdown fix
2025-12-12 16:54:28 +00:00
Toby Jaffey
e5581f1c27
Organise list
2025-12-12 16:52:31 +00:00