Skip to content

Commit dd2ab7a

Browse files
committed
Wrong range of data to write. This happened on the unsafe to safe
change, and just was never tested. Recently hit this.
1 parent b9112f6 commit dd2ab7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/mysql/protocol/comms.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ package struct ProtocolPrepared
251251
reAlloc(8);
252252
double[1] d = isRef? *v.get!DoubleRef : v.get!Double;
253253
ubyte[] uba = cast(ubyte[]) d[];
254-
vals[vcl .. uba.length] = uba[];
254+
vals[vcl .. vcl + uba.length] = uba[];
255255
vcl += uba.length;
256256
break;
257257
case DateRef:

0 commit comments

Comments
 (0)