Explorar el Código

UPD: potential memory out-of-bounds detection in Plugin Extension

rich2014 hace 3 meses
padre
commit
2baeda7ec9
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/uextension.pas

+ 2 - 1
src/uextension.pas

@@ -106,7 +106,8 @@ begin
     DialogBoxParam:= @fDialogBox.DialogBoxParam;
     SetProperty:= @fDialogBox.SetProperty;
     GetProperty:= @fDialogBox.GetProperty;
-    LanguageID:= Language;
+    if Language.Length < sizeof(LanguageID) then
+      LanguageID:= Language;
     CreateComponent:= @fDialogBox.CreateComponent;
   end;
 end;