[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37756: [PATCH] Wrong initialization of fringe bitmap
From: |
Carlos Pita |
Subject: |
bug#37756: [PATCH] Wrong initialization of fringe bitmap |
Date: |
Mon, 14 Oct 2019 23:39:19 -0300 |
In fringe.c:1606 you have:
xfb = xmalloc (sizeof fb + fb.height * BYTES_PER_BITMAP_ROW);
fb.bits = b = ((unsigned short *)
ptr_bounds_clip (xfb + 1, fb.height * BYTES_PER_BITMAP_ROW));
xfb = ptr_bounds_clip (xfb, sizeof *xfb);
memset (b, 0, fb.height);
I might be wrong but it seems to me that the last line should be:
memset (b, 0, fb.height * BYTES_PER_BITMAP_ROW);
instead.
I've attached a patch that does exactly that.
Best regards
--
Carlos
0001-Fix-zero-initialization-of-fringe-bitmap.patch
Description: Text Data
- bug#37756: [PATCH] Wrong initialization of fringe bitmap,
Carlos Pita <=
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Eli Zaretskii, 2019/10/15
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Carlos Pita, 2019/10/15
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Carlos Pita, 2019/10/16
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Eli Zaretskii, 2019/10/16
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Carlos Pita, 2019/10/16
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Eli Zaretskii, 2019/10/16
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Carlos Pita, 2019/10/16
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Alan Third, 2019/10/17
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Robert Pluim, 2019/10/17
- bug#37756: [PATCH] Wrong initialization of fringe bitmap, Eli Zaretskii, 2019/10/26