[gmime: 4/8] Fixed memory access violation on Windows 64-bit



commit 1d3e28bcba67ae3ce19c15b4d64b8cab08c13946
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Mon Oct 30 16:01:39 2017 -0400

    Fixed memory access violation on Windows 64-bit
    
    Thanks to Noah Massey for this patch.

 gmime/gmime-parser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gmime/gmime-parser.c b/gmime/gmime-parser.c
index 70ae3e1..1c4ba0a 100644
--- a/gmime/gmime-parser.c
+++ b/gmime/gmime-parser.c
@@ -1480,7 +1480,7 @@ parser_scan_content (GMimeParser *parser, GMimeStream *content, gboolean *empty)
                priv->midline = FALSE;
                
                while (inptr < inend) {
-                       aligned = (char *) (((long) (inptr + 3)) & ~3);
+                       aligned = (char *) (((size_t) (inptr + 3)) & ~3);
                        start = inptr;
                        
                        /* Note: see optimization comment [1] */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]