- client: fix bug that crashed client if client_state.xml

had garbage within <file_info>

svn path=/trunk/boinc/; revision=19525
This commit is contained in:
David Anderson 2009-11-10 05:42:51 +00:00
parent 45aef88650
commit 74c0223861
2 changed files with 8 additions and 1 deletions

View File

@ -8998,3 +8998,10 @@ David 9 Nov 2009
log_flags.cpp
sched/
sched_locality.cpp
David 9 Nov 2009
- client: fix bug that crashed client if client_state.xml
had garbage within <file_info>
client/
client_types.cpp

View File

@ -789,7 +789,7 @@ int FILE_INFO::parse(MIOFILE& in, bool from_server) {
continue;
}
strcat(signed_xml, buf);
safe_strcat(signed_xml, buf);
if (parse_str(buf, "<name>", name, sizeof(name))) continue;
if (parse_str(buf, "<url>", url)) {
urls.push_back(url);