Ryan Liptak
21f9f378f1
Reader.defaultDiscard: Fix for use with an indirect reader
...
If a Reader implementation implements `stream` by ignoring the Writer, writing directly to its internal buffer, and returning 0, then `defaultDiscard` would not update `seek` and also return 0, which is incorrect and can cause `discardShort` to violate the contract of `VTable.discard` by calling into `vtable.discard` with a non-empty buffer.
This commit fixes the problem by advancing seek up to the limit after the stream call. This logic could likely be somewhat simplified in the future depending on how #25170 is resolved.
2025-11-21 22:34:55 -08:00
..
2025-11-20 14:46:23 -08:00
2025-11-10 09:40:42 +01:00
2025-10-27 07:35:38 -07:00
2025-09-30 18:28:47 -07:00
2025-11-21 19:43:01 -08:00
2025-11-20 14:46:23 -08:00
2025-09-30 13:44:51 +01:00
2025-07-07 22:43:51 -07:00
2025-11-20 15:03:23 -08:00
2025-09-18 22:39:33 -07:00
2025-11-15 09:30:57 +00:00
2025-11-01 11:21:28 -04:00
2025-11-21 22:34:55 -08:00
2025-10-30 09:31:28 +00:00
2025-11-14 11:33:35 +01:00
2025-10-22 11:41:16 +02:00
2025-04-13 02:20:32 -04:00
2025-11-20 15:03:23 -08:00
2025-11-14 11:33:35 +01:00
2025-11-14 11:33:35 +01:00
2025-09-18 22:39:33 -07:00
2025-09-17 19:54:15 -07:00
2025-10-29 06:20:49 -07:00
2025-11-13 22:29:28 +01:00
2025-09-30 13:44:54 +01:00
2025-11-21 19:54:41 -08:00
2025-03-08 14:25:28 -05:00
2025-09-18 22:39:33 -07:00
2025-07-11 08:17:43 +02:00
2025-11-21 12:15:15 +01:00
2025-11-20 14:46:23 -08:00
2025-11-20 14:46:23 -08:00
2025-11-06 05:30:41 -08:00
2025-10-31 18:34:33 -07:00
2025-10-23 09:27:17 +02:00
2025-11-07 08:16:34 +01:00
2025-07-01 23:03:15 +02:00
2025-08-11 15:52:49 -07:00
2025-10-30 09:31:28 +00:00
2025-11-14 11:33:35 +01:00
2025-11-20 15:03:23 -08:00
2025-10-10 22:47:47 -07:00
2025-07-31 22:10:11 -07:00
2025-11-10 14:11:30 +01:00
2025-11-20 10:42:20 +00:00
2025-09-20 14:34:18 -07:00
2025-10-25 21:10:02 -07:00
2024-08-22 08:44:08 +02:00
2025-11-14 11:33:35 +01:00
2025-11-09 03:31:26 -05:00
2025-07-31 22:10:22 +01:00
2025-11-06 13:45:21 +08:00
2025-11-14 11:33:35 +01:00
2025-05-21 13:01:21 +03:30
2025-11-20 14:46:23 -08:00
2025-07-31 22:10:11 -07:00
2025-11-15 09:30:57 +00:00
2025-11-20 10:42:21 +00:00
2025-11-21 19:54:41 -08:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-10-30 09:31:30 +00:00
2025-11-20 10:42:20 +00:00
2025-08-30 06:36:41 +02:00
2025-10-31 18:34:33 -07:00
2025-10-16 22:11:51 +02:00
2025-09-20 14:34:18 -07:00
2024-08-27 00:44:35 +01:00
2025-11-14 11:33:35 +01:00
2025-08-29 17:14:26 -07:00
2025-11-14 12:19:38 +01:00
2025-11-20 15:03:23 -08:00
2025-08-11 15:52:49 -07:00
2025-02-01 19:02:39 +01:00
2025-11-20 15:03:23 -08:00
2025-11-20 04:33:04 -08:00
2025-10-29 06:20:48 -07:00
2025-08-29 17:14:26 -07:00
2025-11-10 09:40:44 +01:00
2025-10-25 21:28:54 -07:00
2024-09-23 13:03:06 -07:00
2025-11-10 09:40:44 +01:00
2025-10-29 06:20:52 -07:00
2025-11-20 14:46:23 -08:00
2025-11-14 12:23:09 +01:00
2025-10-30 09:31:28 +00:00
2025-11-21 19:54:41 -08:00
2025-11-14 11:33:35 +01:00
2025-08-11 15:52:49 -07:00
2025-08-28 18:30:57 -07:00
2025-10-29 06:20:50 -07:00
2025-10-29 06:20:49 -07:00
2025-07-16 10:27:39 -07:00
2025-01-15 15:11:36 -08:00
2025-11-07 19:16:52 -08:00
2025-08-29 17:14:26 -07:00
2025-08-15 23:35:16 +02:00