sd: sidebars are now visible in LOOL
[LibreOffice.git] / external / zlib / ubsan.patch
blob2d7ff8d679678ea8d6eb1a7dc3981b5c4f0eaa27
1 --- trees.c
2 +++ trees.c
3 @@ -870,7 +870,7 @@
4 bi_windup(s); /* align on byte boundary */
5 put_short(s, (ush)stored_len);
6 put_short(s, (ush)~stored_len);
7 - zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len);
8 + if (stored_len != 0) zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len);
9 s->pending += stored_len;
10 #ifdef ZLIB_DEBUG
11 s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L;