Inconsistent handling of empty BLOB slices as parameters #2465
Labels
Repro Available
For issues that are reproducible with repro provided and need investigation
Projects
using the
Offset
andSize
to control slicing ofbyte[]
parameters gives inconsistent results and throws exceptions in some cases:I'm guessing this is "implicit vs explicit zero", with it treating zero as "just send everything"; at a minimum, IMO, this should mean
value.Length - Offset
(i.e. "the rest of the buffer"), notvalue.Length
. At the moment I'm working around this by detecting zero-length buffers and swapping out forbyte[0]
so that it can't get confused, but that leaves me a little worried about that8000
The text was updated successfully, but these errors were encountered: