[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regression in r1436 ("Fix some out-of-bounds/uninitialized issues")
From: |
Sven Schwermer |
Subject: |
Re: Regression in r1436 ("Fix some out-of-bounds/uninitialized issues") |
Date: |
Thu, 24 Jun 2021 13:30:15 +0200 |
Looking a little closer at the problem, this patch seems to fix the issue.
However, it’s not thoroughly tested and I’m not sure whether it’s a valid fix:
$ svn diff -- avr.c
Index: avr.c
===================================================================
--- avr.c (revision 1436)
+++ avr.c (working copy)
@@ -361,7 +361,7 @@
return avr_mem_hiaddr(mem);
}
- if (pgm->paged_load != NULL && mem->page_size != 0) {
+ if (pgm->paged_load != NULL && mem->page_size != 0 && mem->paged) {
/*
* the programmer supports a paged mode read
*/
Best regards,
Sven