Tighten copy_from_history32__bco preconditions

This commit is contained in:
Nigel Tao committed 2018-03-23 11:42:41 +11:00
1 parent 4806f6160d
commit 7de631fb96
6 files changed
+7 -10

No files matched your search

+1 -1
View File
@@ -587,7 +587,7 @@ static inline uint32_t wuffs_base__writer1__copy_from_history32(
// version of the wuffs_base__writer1__copy_from_history32 function above. The
// caller needs to prove that:
// - start != NULL
// - distance != 0
// - distance > 0
// - distance <= (*ptr_ptr - start)
// - length <= (end - *ptr_ptr)
static inline uint32_t wuffs_base__writer1__copy_from_history32__bco(
+1 -1
View File
@@ -605,7 +605,7 @@ static inline uint32_t wuffs_base__writer1__copy_from_history32(
// version of the wuffs_base__writer1__copy_from_history32 function above. The
// caller needs to prove that:
// - start != NULL
// - distance != 0
// - distance > 0
// - distance <= (*ptr_ptr - start)
// - length <= (end - *ptr_ptr)
static inline uint32_t wuffs_base__writer1__copy_from_history32__bco(
+1 -1
View File
@@ -716,7 +716,7 @@ static inline uint32_t wuffs_base__writer1__copy_from_history32(
// version of the wuffs_base__writer1__copy_from_history32 function above. The
// caller needs to prove that:
// - start != NULL
// - distance != 0
// - distance > 0
// - distance <= (*ptr_ptr - start)
// - length <= (end - *ptr_ptr)
static inline uint32_t wuffs_base__writer1__copy_from_history32__bco(