]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - LinuxGUI/Ventoy2Disk/QT/ventoy2diskwindow.cpp
The gpt pointer is not initialized, and when offset < 0, it may result in freeing...
[Ventoy.git] / LinuxGUI / Ventoy2Disk / QT / ventoy2diskwindow.cpp
index b0307a20328a2a263b30489ee9eb412fa70a4bb3..3615e3b7bf2b5b91ed0fefac4a0a6b97af67d650 100644 (file)
@@ -512,6 +512,14 @@ void Ventoy2DiskWindow::on_ButtonInstall_clicked()
     }
 
     cur = g_disk_list + index;
+
+    if (cur->is4kn)
+    {
+        lang_string("STR_4KN_UNSUPPORTED", msg);
+        QMessageBox::critical(NULL, title_err, msg);
+        return;
+    }
+
     if (ventoy_code_get_cur_part_style() == 0 && cur->size_in_byte > 2199023255552ULL)
     {
         lang_string("STR_DISK_2TB_MBR_ERROR", msg);