File tree Expand file tree Collapse file tree 3 files changed +0
-24
lines changed Expand file tree Collapse file tree 3 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -339,21 +339,6 @@ IsValidIdentifier(const std::string& input)
339
339
return true ;
340
340
}
341
341
342
- bool
343
- IsValidPath (const std::string& path)
344
- {
345
- if (path.empty ()) {
346
- return false ;
347
- }
348
-
349
- // Must be absolute path
350
- if (path[0 ] != ' /' ) {
351
- return false ;
352
- }
353
-
354
- return true ;
355
- }
356
-
357
342
bool
358
343
IsExecutableFile (const std::string& filepath)
359
344
{
Original file line number Diff line number Diff line change @@ -349,9 +349,6 @@ constexpr const char* INVALID_CHARS = ";|&$`<>()[]{}\\\"'*?~#!";
349
349
// Validate that an identifier (model name, region name, etc.)
350
350
bool IsValidIdentifier (const std::string& input);
351
351
352
- // Validate that a path exists and is absolute
353
- bool IsValidPath (const std::string& path);
354
-
355
352
// Check if a file exists and is executable
356
353
bool IsExecutableFile (const std::string& filepath);
357
354
Original file line number Diff line number Diff line change @@ -346,12 +346,6 @@ StubLauncher::Launch()
346
346
" Invalid stub name: contains invalid characters" );
347
347
}
348
348
349
- if (!IsValidPath (model_path_)) {
350
- return TRITONSERVER_ErrorNew (
351
- TRITONSERVER_ERROR_INVALID_ARG,
352
- " Invalid model path: contains invalid characters or not absolute" );
353
- }
354
-
355
349
if (!IsValidIdentifier (shm_region_name_)) {
356
350
return TRITONSERVER_ErrorNew (
357
351
TRITONSERVER_ERROR_INVALID_ARG,
You can’t perform that action at this time.
0 commit comments