Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault during xml parsing #32

Open
dov opened this issue Jun 13, 2012 · 1 comment
Open

segfault during xml parsing #32

dov opened this issue Jun 13, 2012 · 1 comment

Comments

@dov
Copy link

dov commented Jun 13, 2012

In gd_cache.c the following code crashed:

            if(strcmp(name, "content") == 0)
            {
                value = xmlGetProp(c1, "src");
                str_init_create(&entry->src, value, 0);
                xmlFree(value);
            }

because value==NULL. If it is a protocol error that value is empty then the code should exit with an error message.

@jcline
Copy link
Owner

jcline commented Jun 20, 2012

That's rather interesting. My reading of the docs was that that shouldn't be something that should happen. I guess I need to look through them again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants