jcline / fuse-google-drive

A fuse filesystem wrapper for Google Drive.
GNU General Public License v2.0
286 stars 48 forks source link

segfault during xml parsing #32

Open dov opened 12 years ago

dov commented 12 years ago

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 commented 12 years ago

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.