mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 06:32:55 -04:00
added an error output for invalid image_size
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5195 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
94729aae4b
commit
c78ca83090
1 changed files with 1 additions and 0 deletions
|
@ -1098,6 +1098,7 @@ RsChatAvatarItem::RsChatAvatarItem(void *data,uint32_t /*size*/)
|
||||||
offset += image_size ;
|
offset += image_size ;
|
||||||
}else{
|
}else{
|
||||||
ok = false;
|
ok = false;
|
||||||
|
std::cerr << "offset+image_size exceeds rssize" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offset != rssize)
|
if (offset != rssize)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue