-
Notifications
You must be signed in to change notification settings - Fork 3
Comparing changes
Open a pull request
base repository: pdaxrom/microcpu
base: master
head repository: pdaxrom/microcpu
compare: code_review
- 8 commits
- 3 files changed
- 1 contributor
Commits on Oct 26, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 81ae85a - Browse repository at this point
Copy the full SHA 81ae85aView commit details -
fix(asm): fix buffer overflows in operand and get_bytes functions
- Replace variable-length arrays with fixed-size buffers (256 bytes) - Add bounds checks in operand() to prevent buffer overflow - Fix loop condition in get_bytes() to avoid infinite loops - Use safe string copy with strncpy and null termination - Add output buffer size checks before writing - Correct typo in CONSTANT_VALUE_TOO_BIG error
Configuration menu - View commit details
-
Copy full SHA for b1364fc - Browse repository at this point
Copy the full SHA b1364fcView commit details -
fix(asm): add checks for memory allocation failures
- Check return values of malloc, realloc, and strdup in add_label, add_proc, and add_macro - Free allocated memory on strdup failure to prevent leaks - Set appropriate error codes on allocation failures
Configuration menu - View commit details
-
Copy full SHA for 7e3bf27 - Browse repository at this point
Copy the full SHA 7e3bf27View commit details -
fix(asm): fix expression parsing issues
- Add division by zero checks in exp6() for / and % operators - Replace variable-length arrays with fixed-size buffers in operand, find_opcode_in_string, and find_register_in_string - Add bounds checks to prevent buffer overflows in string parsing functions - In operand(), error on unresolved labels in pass 2 instead of silently returning 0
Configuration menu - View commit details
-
Copy full SHA for 82f5742 - Browse repository at this point
Copy the full SHA 82f5742View commit details -
fix(asm): fix file handling issues
- Add check for argc >= 2 in main() to prevent invalid argv[1] access - Change fseek check to error and exit if rewinding file fails for pass 2 - Remove invalid 'else' clause in main() that was causing compilation errors
Configuration menu - View commit details
-
Copy full SHA for 59e16ce - Browse repository at this point
Copy the full SHA 59e16ceView commit details -
fix(asm): resolve potential bugs in assembler
- Correct SKIP_TOKEN macro logic error - Fix memory leaks in add_macro function - Make label and proc lookups case-insensitive
Configuration menu - View commit details
-
Copy full SHA for 6862514 - Browse repository at this point
Copy the full SHA 6862514View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fb0851 - Browse repository at this point
Copy the full SHA 5fb0851View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc4aa45 - Browse repository at this point
Copy the full SHA fc4aa45View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...code_review