uwp: workaround a false positive in certification of orc
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 7 May 2019 14:48:34 +0000 (20:18 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 1 Jul 2019 12:16:22 +0000 (17:46 +0530)
It seems that the Windows App Certification Kit searches all files and
binaries for the regex '\<reg\>' (or something like it) and throws
errors if it exists. Supposedly this is for preventing apps from
running REG.EXE

https://blogs.msdn.microsoft.com/appconsult/2017/08/16/how-to-validate-if-your-application-is-compliant-with-the-windows-store-polices-windows-10-and-windows-10-s/

orc/orccompiler.c

index 50ec20b..f0ebb12 100644 (file)
@@ -117,7 +117,7 @@ orc_compiler_allocate_register (OrcCompiler *compiler, int data_reg)
   }
 
   if (data_reg || !compiler->allow_gp_on_stack) {
-    orc_compiler_error (compiler, "register overflow for %s reg",
+    orc_compiler_error (compiler, "register overflow for %s register",
         data_reg ? "vector" : "gp");
     compiler->result = ORC_COMPILE_RESULT_UNKNOWN_COMPILE;
   }