File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 8
8
- Fixed a crash bug with malformed URIs (Issue #418 )
9
9
- Fixed a crash bug with malformed GIF files (Issue #423 )
10
10
- Fixed a crash bug with empty titles (Issue #425 )
11
+ - Fixed a crash bug with bogus text (Issue #426 )
11
12
- Fixed some issues reported by Coverity.
12
13
- Removed the bundled libjpeg, libpng, and zlib.
13
14
Original file line number Diff line number Diff line change 1
1
/*
2
2
* HTML exporting functions for HTMLDOC, a HTML document processing program.
3
3
*
4
- * Copyright 2011-2019 by Michael R Sweet.
4
+ * Copyright 2011-2021 by Michael R Sweet.
5
5
* Copyright 1997-2010 by Easy Software Products. All rights reserved.
6
6
*
7
7
* This program is free software. Distribution and use rights are outlined in
@@ -585,7 +585,7 @@ write_node(FILE *out, /* I - Output file */
585
585
for (ptr = t->data ; *ptr; ptr ++)
586
586
fputs ((char *)iso8859 (*ptr), out);
587
587
588
- if (t->data [strlen ((char *)t->data ) - 1 ] == ' \n ' )
588
+ if (t->data [0 ] && t-> data [ strlen ((char *)t->data ) - 1 ] == ' \n ' )
589
589
col = 0 ;
590
590
else
591
591
col += strlen ((char *)t->data );
Original file line number Diff line number Diff line change @@ -1602,7 +1602,7 @@ write_file(tree_t *t, /* I - Tree entry */
1602
1602
for (ptr = t->data ; *ptr != ' \0 ' ; ptr ++)
1603
1603
fputs ((char *)iso8859 (*ptr), fp);
1604
1604
1605
- if (t->data [strlen ((char *)t->data ) - 1 ] == ' \n ' )
1605
+ if (t->data [0 ] && t-> data [ strlen ((char *)t->data ) - 1 ] == ' \n ' )
1606
1606
col = 0 ;
1607
1607
else
1608
1608
col += strlen ((char *)t->data );
Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ write_node(FILE *out, /* I - Output file */
591
591
for (ptr = t->data ; *ptr; ptr ++)
592
592
fputs ((char *)iso8859 (*ptr), out);
593
593
594
- if (t->data [strlen ((char *)t->data ) - 1 ] == ' \n ' )
594
+ if (t->data [0 ] && t-> data [ strlen ((char *)t->data ) - 1 ] == ' \n ' )
595
595
col = 0 ;
596
596
else
597
597
col += strlen ((char *)t->data );
You can’t perform that action at this time.
0 commit comments