kopia lustrzana https://github.com/stlink-org/stlink
Resolve merge conflict for diverging branch.
Explicitely convert from goffset to gsize with prior overflow check. Implicit conversion is forbidden by compiler settings.pull/1284/head^2
rodzic
33430783b3
commit
53e9252cc0
|
@ -303,7 +303,7 @@ static gpointer stlink_gui_populate_filemem_view(gpointer data) {
|
|||
|
||||
goffset file_size = g_file_info_get_size(file_info);
|
||||
|
||||
if (G_MAXSIZE < file_size) {
|
||||
if ((0 > file_size) && (G_MAXSIZE <= file_size)) {
|
||||
stlink_gui_set_info_error_message(gui, "File too large.");
|
||||
goto out_input;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue