Changeset: 99f5f8b492e4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/99f5f8b492e4
Modified Files:
gdk/gdk.h
Branch: Jul2021
Log Message:
Off-by-one error. This fixes bug #7225.
diffs (12 lines):
diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -1673,7 +1673,7 @@ tfastins_nocheck(BAT *b, BUN p, const vo
static inline gdk_return __attribute__((__warn_unused_result__))
tfastins(BAT *b, BUN p, const void *v)
{
- if (p > BATcapacity(b)) {
+ if (p >= BATcapacity(b)) {
if (p >= BUN_MAX) {
GDKerror("tfastins: too many elements to accommodate ("
BUNFMT ")\n", BUN_MAX);
return GDK_FAIL;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list