mirror of
https://git.tesses.org/tesses50/crosslang.git
synced 2026-06-01 18:25:32 +00:00
Fix a security vulerability in crossdump that is supposed to use uint32_t but accidently used uint8_t, set to tessesframework=0.0.5
This commit is contained in:
@@ -280,6 +280,16 @@ void TStd::RegisterProcess(std::shared_ptr<GC> gc, TRootEnvironment *env) {
|
||||
}
|
||||
return Undefined();
|
||||
});
|
||||
|
||||
process->DeclareFunction(
|
||||
gc, "ShellFileOrUrl", "Launch file or url in shell", {"urlOrFilename"},
|
||||
[](GCList &ls, std::vector<TObject> args) -> TObject {
|
||||
std::string fileOrUrl;
|
||||
if (GetArgument(args, 0, fileOrUrl))
|
||||
Tesses::Framework::Platform::ShellFileOrUrl(fileOrUrl);
|
||||
|
||||
return Undefined();
|
||||
});
|
||||
gc->BarrierEnd();
|
||||
}
|
||||
} // namespace Tesses::CrossLang
|
||||
|
||||
Reference in New Issue
Block a user