This is an automated email from the git hooks/post-receive script. mbrush pushed a commit to branch master in repository apps/mousepad.
commit 959fe8b6266b74396d077fe90bc62aa1fd385c88 Author: Matthew Brush <[email protected]> Date: Wed Aug 13 19:14:57 2014 -0700 Fix reading past end of mmap'd region Also fixes assumption that UTF-8 can't contain embedded nul characters. --- mousepad/mousepad-file.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mousepad/mousepad-file.c b/mousepad/mousepad-file.c index bff49d3..d316ea2 100644 --- a/mousepad/mousepad-file.c +++ b/mousepad/mousepad-file.c @@ -543,10 +543,6 @@ mousepad_file_open (MousepadFile *file, { validate: - /* glib uses a faster validator when the string is nul-terminated */ - if (G_LIKELY (length > 0 && contents[length] == '\0')) - length = -1; - /* leave when the contents is not utf-8 valid */ if (g_utf8_validate (contents, length, &end) == FALSE) { -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce4-commits
