mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-06 03:33:32 +00:00
Pascal Precht
3615a16b70
fix(libstatus): make saveContact API memory safe(r)
In https://github.com/status-im/status-desktop/commit/31a9d1a6f we've fixed a bug where a contact's thumbnail hasn't been passed to the `saveContact` API. Unfortunately, that fix wasn't memory safe. There are cases when a contact's `identityImage` is `nil`, resulting in illegal storage access when accessing a contact's thumbnail. This commit fixes the issue by safe guarding around `identityImage` possibly being `nil`.
Nim-status-client
Desktop client for the Status Network built with Nim and Qt
note: this documentation is wip
Getting started
Overview
Architecture & Development
Guides & Tutorials
Continuous Integration
API
Translations
License
Licensed under the Mozilla Public License Version 2.0
Description
Languages
QML
39.3%
JavaScript
29.5%
Nim
18.5%
Python
5.6%
C++
5.2%
Other
1.7%