mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-13 12:31:25 +00:00
Ensure starting with clean buffer ...
This commit is contained in:
parent
b1161ba746
commit
167263ab3a
@ -46,7 +46,7 @@ void sha1_to_str(const uint8_t * const md, char *buf);
|
||||
static inline int ASSERT_SHA(const char *SHA_STR) {
|
||||
uint8_t md[SHA_DIGEST_LENGTH];
|
||||
|
||||
uint8_t *fb = MALLOC(SCANWIDTH*SCANHEIGHT);
|
||||
uint8_t *fb = CALLOC(1, SCANWIDTH*SCANHEIGHT);
|
||||
display_renderStagingFramebuffer(fb);
|
||||
SHA1(fb, SCANWIDTH*SCANHEIGHT, md);
|
||||
FREE(fb);
|
||||
|
@ -1396,7 +1396,7 @@ static int _test_disk_image_with_gzip_header(int readonly) {
|
||||
do {
|
||||
uint8_t md[SHA_DIGEST_LENGTH];
|
||||
|
||||
uint8_t *fb = MALLOC(SCANWIDTH*SCANHEIGHT);
|
||||
uint8_t *fb = CALLOC(1, SCANWIDTH*SCANHEIGHT);
|
||||
display_renderStagingFramebuffer(fb);
|
||||
SHA1(fb, SCANWIDTH*SCANHEIGHT, md);
|
||||
FREE(fb);
|
||||
@ -1504,7 +1504,7 @@ TEST test_reinsert_edgecase() {
|
||||
c_debugger_go();
|
||||
uint8_t md[SHA_DIGEST_LENGTH];
|
||||
|
||||
uint8_t *fb = MALLOC(SCANWIDTH*SCANHEIGHT);
|
||||
uint8_t *fb = CALLOC(1, SCANWIDTH*SCANHEIGHT);
|
||||
display_renderStagingFramebuffer(fb);
|
||||
SHA1(fb, SCANWIDTH*SCANHEIGHT, md);
|
||||
FREE(fb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user