Commit d46eb874 authored by Stefan Behnel's avatar Stefan Behnel

(try to) fix buffer overflow in test

parent ae25c47f
......@@ -107,11 +107,15 @@ class Integral {
dst_offset = 0;
src_offset = 0;
msb = ((unsigned char*) src)[src_len - 1];
if (src_len > dst_len) {
src_len = dst_len;
}
} else {
if (dst_len > src_len) {
dst_offset = dst_len - src_len;
} else {
src_offset = src_len - dst_len;
src_len = dst_len;
}
msb = ((unsigned char*) src)[0];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment