Skip to content

Commit

Permalink
epub: Fix an incorrect sizeof call detected by AddressSanitizer (#635)
Browse files Browse the repository at this point in the history
This commit also fixes a build directory typo in INSTALL.md.
  • Loading branch information
correctmost committed Jan 31, 2024
1 parent e57d9e8 commit 1cde192
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cd xreader
# libraries, and shared files into /usr/local, and
# enables all available options:
meson buildir \
meson builddir \
--prefix=/usr/local \
--buildtype=plain \
-D deprecated_warnings=false \
Expand Down
2 changes: 1 addition & 1 deletion backend/epub/epub-document.c
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ setup_document_content_list(const gchar* content_uri, GError** error,gchar *docu
}
if ( xmlStrcmp(itemrefptr->name,(xmlChar*)"itemref") == 0)
{
contentListNode *newnode = g_malloc0(sizeof(newnode));
contentListNode *newnode = g_malloc0(sizeof(*newnode));
newnode->key = (gchar*)xml_get_data_from_node(itemrefptr,XML_ATTRIBUTE,(xmlChar*)"idref");
if ( newnode->key == NULL )
{
Expand Down

0 comments on commit 1cde192

Please sign in to comment.