Skip to content

Commit 1cde192

Browse files
authored
epub: Fix an incorrect sizeof call detected by AddressSanitizer (#635)
This commit also fixes a build directory typo in INSTALL.md.
1 parent e57d9e8 commit 1cde192

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ cd xreader
4747
# libraries, and shared files into /usr/local, and
4848
# enables all available options:
4949
50-
meson buildir \
50+
meson builddir \
5151
--prefix=/usr/local \
5252
--buildtype=plain \
5353
-D deprecated_warnings=false \

backend/epub/epub-document.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ setup_document_content_list(const gchar* content_uri, GError** error,gchar *docu
10551055
}
10561056
if ( xmlStrcmp(itemrefptr->name,(xmlChar*)"itemref") == 0)
10571057
{
1058-
contentListNode *newnode = g_malloc0(sizeof(newnode));
1058+
contentListNode *newnode = g_malloc0(sizeof(*newnode));
10591059
newnode->key = (gchar*)xml_get_data_from_node(itemrefptr,XML_ATTRIBUTE,(xmlChar*)"idref");
10601060
if ( newnode->key == NULL )
10611061
{

0 commit comments

Comments
 (0)