FreeBSD Bugzilla – Attachment 160630 Details for
Bug 202832
[PATCH] r391392 broke mail/sylpheed on platforms were time_t is 64 bit long
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch to fix breakage on platforms with a 64 bit time_t
patch-libsylph_procmsg.c (text/plain), 608 bytes, created by
yamagi
on 2015-09-02 11:21:29 UTC
(
hide
)
Description:
Updated patch to fix breakage on platforms with a 64 bit time_t
Filename:
MIME Type:
Creator:
yamagi
Created:
2015-09-02 11:21:29 UTC
Size:
608 bytes
patch
obsolete
>--- libsylph/procmsg.c.orig 2014-06-10 04:06:35 UTC >+++ libsylph/procmsg.c >@@ -164,7 +164,7 @@ static gint procmsg_read_cache_data_str_ > if (endp - *p < sizeof(len)) > return -1; > >- len = *(const guint32 *)(*p); >+ memcpy(&len, *p, sizeof(len)); > *p += sizeof(len); > if (len > G_MAXINT || len > endp - *p) > return -1; >@@ -197,7 +197,9 @@ static gint procmsg_read_cache_data_str_ > g_mapped_file_free(mapfile); \ > return NULL; \ > } else { \ >- n = *(const guint32 *)p; \ >+ guint32 v; \ >+ memcpy(&v, p, sizeof(v)); \ >+ n = v; \ > p += sizeof(guint32); \ > } \ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202832
: 160630 |
160633