Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/56556a677e86f24462542...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/56556a677e86f24462542f9...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/56556a677e86f24462542f951...
The branch, master has been updated
via 56556a677e86f24462542f951043b2f8d7647c31 (commit)
from 5085bfbf99ff3885acb2e23f8a48d18f150e294a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=56556a677e86f244625...
commit 56556a677e86f24462542f951043b2f8d7647c31
Author: Michael Drake <tlsa(a)netsurf-browser.org>
Commit: Michael Drake <tlsa(a)netsurf-browser.org>
Detect bad line endings and print error.
diff --git a/framebuffer/convert_font.c b/framebuffer/convert_font.c
index d71688e..b29c6ed 100644
--- a/framebuffer/convert_font.c
+++ b/framebuffer/convert_font.c
@@ -781,6 +781,11 @@ static bool parse_chunk(struct parse_context *ctx, const char *buf,
size_t len,
}
while (pos < end) {
+ if (*pos == '\r') {
+ LOG(LOG_ERROR, "Detected \'\\r\': Bad line ending\n");
+ return false;
+ }
+
switch (ctx->state) {
case START:
if (*pos != '*') {
-----------------------------------------------------------------------
Summary of changes:
framebuffer/convert_font.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/framebuffer/convert_font.c b/framebuffer/convert_font.c
index d71688e..b29c6ed 100644
--- a/framebuffer/convert_font.c
+++ b/framebuffer/convert_font.c
@@ -781,6 +781,11 @@ static bool parse_chunk(struct parse_context *ctx, const char *buf,
size_t len,
}
while (pos < end) {
+ if (*pos == '\r') {
+ LOG(LOG_ERROR, "Detected \'\\r\': Bad line ending\n");
+ return false;
+ }
+
switch (ctx->state) {
case START:
if (*pos != '*') {
--
NetSurf Browser