~igor-cali/bilancio/trunk-a18

« back to all changes in this revision

Viewing changes to src/ombconvert/ombconvert.cpp

  • Committer: Igor Calì
  • Date: 2024-04-07 15:42:12 UTC
  • Revision ID: igor.cali0@gmail.com-20240407154212-za8iy8efo91nwmz9
[Desktop] Code security harneded based on Flawfinder checks; [Android] Code security hardening baseline based on Insider checks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Name:      ombconvert.cpp
3
3
 * Purpose:   old format conversion tool for OpenMoneyBox
4
4
 * Author:    Igor Calì (igor.cali0@gmail.com)
5
 
 * Created:   2023-04-30
 
5
 * Created:   2024-04-06
6
6
 * Copyright: Igor Calì (igor.cali0@gmail.com)
7
7
 * License:             GNU
8
8
 **************************************************************/
25
25
        extern bool TableExists(const wxString& tableName, const wxString& databaseName, sqlite3 *m_db);
26
26
        extern int ExecuteUpdate(sqlite3 *m_db, const char* sql);
27
27
        extern wxSQLite3Table GetTable(sqlite3 *m_db, const char* sql);
28
 
        extern std::string getpass(const char *prompt, bool show_asterisk = true);
 
28
        extern std::string getpass(const char *prompt, bool show_asterisk = true);      // flawfinder: ignore
29
29
#endif // _OMB_USE_CIPHER
30
30
 
31
31
#ifdef __WXMSW__
84
84
                        dataconverter *original = new dataconverter();
85
85
                        wxString result;
86
86
                        #ifdef _OMB_USE_CIPHER
87
 
                                wxString pwd = getpass("Enter the document password: ", true);
 
87
                                wxString pwd = getpass("Enter the document password: ", true);  // flawfinder: ignore
88
88
                                original_format = CheckFileFormat(file, pwd, false);
89
89
                        #else
90
90
                                original_format = CheckFileFormat(file);