Andrew Hundt
8d0816db67
fix(depindex): bound invalid automatic dependency limits
...
Define CBM_MAX_AUTO_DEP_LIMIT in src/depindex/depindex.h and route src/depindex/depindex.c plus src/mcp/mcp.c through cbm_dep_normalize_configured_limit. Values 1..10000 remain caps, 0 remains unlimited, and negative or oversized legacy/internal values fall back to CBM_DEFAULT_AUTO_DEP_LIMIT instead of becoming unbounded.
Parse config integers through cbm_config_parse_decimal_int in src/cli/cli.c so ERANGE and values outside INT_MIN..INT_MAX return the caller default rather than narrowing to int. Reject persisted auto_dep_limit values outside 0..10000, derive the registry range and MCP schema maximum from CBM_MAX_AUTO_DEP_LIMIT, and cover the boundaries in tests/test_cli.c, tests/test_depindex.c, and tests/test_mcp.c.
Verified: cli 243 passed; depindex 40 passed; mcp 273 passed; bash scripts/check-source-safety.sh passed; git diff --check passed.
Signed-off-by: Andrew Hundt <ATHundt@gmail.com >
2026-07-22 16:55:05 -04:00
..
2026-07-10 09:12:40 +00:00
2026-07-21 18:53:32 -04:00
2026-07-12 19:57:47 +02:00
2026-06-05 21:53:25 +02:00
2026-06-05 21:53:25 +02:00
2026-07-19 14:09:36 -04:00
2026-03-15 22:37:34 +01:00
2026-07-13 05:21:55 +02:00
2026-07-20 22:53:48 -04:00
2026-05-30 18:26:44 +02:00
2026-07-14 01:47:43 -04:00
2026-06-29 09:45:28 -06:00
2026-07-22 04:54:18 -04:00
2026-07-22 04:54:18 -04:00
2026-07-22 16:33:49 -04:00
2026-07-22 15:19:08 -04:00
2026-07-14 01:47:43 -04:00
2026-07-22 16:55:05 -04:00
2026-07-13 01:50:02 +02:00
2026-07-14 21:13:52 +02:00
2026-07-13 02:00:32 +02:00
2026-07-21 18:56:39 -04:00
2026-07-02 07:37:19 -04:00
2026-06-28 06:34:23 -04:00
2026-06-06 22:16:04 +02:00
2026-07-13 04:34:16 -04:00
2026-05-19 22:47:53 +02:00
2026-07-19 22:19:05 -04:00
2026-07-22 16:55:05 -04:00
2026-07-14 01:47:43 -04:00
2026-06-24 17:03:07 -04:00
2026-06-23 06:38:45 +09:00
2026-03-25 09:28:11 +01:00
2026-07-19 14:09:36 -04:00
2026-07-15 15:44:06 -04:00
2026-07-19 14:09:36 -04:00
2026-06-07 12:35:53 +02:00
2026-06-08 22:55:23 +02:00
2026-07-19 19:04:23 -04:00
2026-07-14 01:47:43 -04:00
2026-07-19 14:09:36 -04:00
2026-07-13 04:34:16 -04:00
2026-07-16 06:09:34 -04:00
2026-06-22 23:51:49 +02:00
2026-03-15 22:37:34 +01:00
2026-07-15 15:44:06 -04:00
2026-07-15 15:44:06 -04:00
2026-06-28 06:34:23 -04:00
2026-06-28 06:34:23 -04:00
2026-06-28 06:34:23 -04:00
2026-07-14 01:47:43 -04:00
2026-06-28 06:34:23 -04:00
2026-06-28 06:34:23 -04:00
2026-07-14 01:47:43 -04:00
2026-07-08 00:05:19 +05:30
2026-07-14 05:06:05 -04:00
2026-06-30 00:38:07 -04:00
2026-05-21 22:52:16 +02:00
2026-07-13 04:17:58 +02:00
2026-07-14 05:33:30 -04:00
2026-07-01 23:52:19 -04:00
2026-07-19 14:09:36 -04:00
2026-07-20 01:23:32 -04:00
2026-07-01 04:04:08 -04:00
2026-07-22 15:17:40 -04:00
2026-07-20 01:23:32 -04:00
2026-06-02 18:52:37 +02:00
2026-07-01 07:37:23 -04:00
2026-07-01 07:22:12 -04:00
2026-07-19 14:09:36 -04:00
2026-07-08 00:05:19 +05:30
2026-07-14 01:47:43 -04:00
2026-07-15 15:44:06 -04:00
2026-03-15 22:37:34 +01:00
2026-07-19 14:09:36 -04:00
2026-07-15 15:44:06 -04:00
2026-06-28 06:34:23 -04:00
2026-07-22 16:55:05 -04:00
2026-07-08 06:03:54 -04:00
2026-06-28 06:34:23 -04:00
2026-07-19 14:09:36 -04:00
2026-07-14 02:49:30 -04:00
2026-07-14 01:47:43 -04:00
2026-07-08 19:13:25 +02:00
2026-07-03 19:57:01 +02:00
2026-07-09 14:09:39 -05:00
2026-07-09 22:32:26 +02:00
2026-07-21 18:53:32 -04:00
2026-07-16 04:10:26 +01:00
2026-07-13 04:34:16 -04:00
2026-05-09 15:44:09 +02:00
2026-05-09 14:16:15 +02:00
2026-07-19 14:09:36 -04:00
2026-07-16 04:52:38 -04:00
2026-06-30 06:05:15 -04:00
2026-07-06 18:32:50 +02:00
2026-07-19 01:10:25 -04:00
2026-05-08 22:26:56 +02:00
2026-06-24 03:15:36 +02:00
2026-07-19 14:09:36 -04:00
2026-07-06 21:52:37 +02:00
2026-07-14 01:47:43 -04:00
2026-06-28 21:57:35 -06:00
2026-06-30 11:00:27 -04:00
2026-07-19 14:09:36 -04:00
2026-07-19 14:09:36 -04:00
2026-07-14 01:47:43 -04:00
2026-04-11 09:22:23 -04:00
2026-07-11 02:40:54 +02:00
2026-07-14 01:47:43 -04:00
2026-07-19 15:48:01 -04:00
2026-07-19 14:09:36 -04:00
2026-07-19 14:09:36 -04:00
2026-03-24 23:48:23 +01:00
2026-07-14 01:47:43 -04:00
2026-07-16 08:18:18 -04:00
2026-07-22 04:54:18 -04:00
2026-07-19 01:42:38 -04:00
2026-07-19 16:38:27 -04:00
2026-03-24 23:48:23 +01:00
2026-07-02 03:55:39 -04:00
2026-06-10 12:11:02 +02:00
2026-07-07 23:09:05 +02:00
2026-04-09 23:15:10 -04:00
2026-06-05 21:53:25 +02:00
2026-07-14 01:47:43 -04:00
2026-07-01 23:42:49 -04:00
2026-07-04 14:38:25 +02:00
2026-04-10 20:09:37 -04:00
2026-04-15 23:56:03 +02:00