mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05: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
@ -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…
Reference in New Issue
Block a user