History

a small revers for bcheck.o changes (d80593bc4d43)

replacing (addr > e->size) with (addr >= e->size) was correct only in one place, a second replacing is reversed by this commit.

seyko committed 11 years ago

Commit 96debc71 parent db081221 file · +1 −1Browse files

Unified · Split

lib/bcheck.c+1−1
@@ -205,7 +205,7 @@ void * FASTCALL __bound_ptr_indir ## dsize (void *p, size_t offset) \ · 204 unmodified lines
205 addr = (size_t)p - e->start; \205 addr = (size_t)p - e->start; \
206 } \206 } \
207 addr += offset + dsize; \207 addr += offset + dsize; \
208 if (addr >= e->size) \208 if (addr > e->size) \
209 return INVALID_POINTER; /* return an invalid pointer */ \209 return INVALID_POINTER; /* return an invalid pointer */ \
210 return p + offset; \210 return p + offset; \
211}211}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t