-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
24m08b #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @AstroAir! Thanks for this PR.
for more information, see https://pre-commit.ci
- 重构组件和连接器的头文件和源文件,优化编译时间和清晰度。 - 删除未使用的代码片段,如collection和container类。 - 调整INDIManager和INDIConnector的实现,以提高效率和可靠性。 - 更新日志宏以正确处理路径和字符串转换。 - 改进驱动程序列表的解析功能,增强健壮性。 BREAKING CHANGE: 删除了一些类和函数,这可能会影响依赖于之前版本中container和collection类的客户端。
- 重构组件定义,添加枚举类型支持。 - 重构IO模块,提取公共代码,优化压缩和解压缩功能。 - 重构错误处理,改进错误堆栈操作。 - 更新编译器实现,使用临时文件进行语法检查。 - 修正convolve.cpp中的编译警告。
src/task/manager.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TaskInterpreter仍然难以使用,存在大量神奇的错误,基础语法也有问题!
for more information, see https://pre-commit.ci
- 重构`atom::meta::TypeInfo`以使用新的检测逻辑,现在可以正确检测各种类型的属性,包括指针和引用。 - 改进`atom::utils`中的位操作函数,如`createMask`、`countBytes`、`reverseBits`和旋转函数,提高其效率和灵活性。 - 修正`fieldCountOf`和`isBracesConstructible`函数,允许它们在constexpr上下文中更有效地运行,不抛出异常。 BREAKING CHANGE: `TypeInfo`的更改可能会影响依赖于旧类型检测方法的代码。需要更新依赖代码以兼容新检测逻辑。
for more information, see https://pre-commit.ci
增加天体搜索模块
for more information, see https://pre-commit.ci
logger.debug( | ||
f"Received request to create backup for file: {file_path}, compress={compress}") | ||
|
||
if not os.path.exists(file_path): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
logger.info( | ||
f"File {file_path} backed up and compressed to {backup_path}") | ||
else: | ||
shutil.copy(file_path, backup_path) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
logger.info( | ||
f"File {file_path} backed up and compressed to {backup_path}") | ||
else: | ||
shutil.copy(file_path, backup_path) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
shutil.copy(file_path, backup_path) | ||
logger.info(f"File {file_path} backed up to {backup_path}") | ||
|
||
backup_size = os.path.getsize(backup_path) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
f"Received request to restore backup: {file_name}, decompress={decompress}, restore_dir={restore_dir}") | ||
|
||
backup_path = os.path.join(BACKUP_DIR, file_name) | ||
if not os.path.exists(backup_path): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
logger.debug(f"Received request to delete backup: {file_name}") | ||
|
||
backup_path = os.path.join(BACKUP_DIR, file_name) | ||
if not os.path.exists(backup_path): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
raise HTTPException(status_code=404, detail="Backup not found") | ||
|
||
try: | ||
os.remove(backup_path) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
logger.info(f"Executing command: {' '.join(full_command)}, attempt {attempt + 1}") | ||
|
||
# 使用 subprocess 运行命令行工具 | ||
result = subprocess.run(full_command, capture_output=True, text=True, check=True, timeout=timeout, env=env) |
Check failure
Code scanning / CodeQL
Uncontrolled command line Critical
user-provided value
This command line depends on a
user-provided value
|
||
logger.debug(f"Request to delete log file: {file_name}") | ||
|
||
if not exists(file_name): |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
raise HTTPException(status_code=404, detail="Log file not found") | ||
|
||
try: | ||
remove(file_name) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
""" | ||
file_location = f"/dev/shm/{file.filename}" | ||
try: | ||
with open(file_location, "wb+") as file_object: |
Check failure
Code scanning / SonarCloud
I/O function calls should not be vulnerable to path injection attacks
raise HTTPException(status_code=404, detail="Backup not found") | ||
|
||
if not os.path.exists(restore_dir): | ||
os.makedirs(restore_dir) |
Check failure
Code scanning / SonarCloud
I/O function calls should not be vulnerable to path injection attacks
raise HTTPException(status_code=404, detail="Backup not found") | ||
|
||
try: | ||
os.remove(backup_path) |
Check failure
Code scanning / SonarCloud
I/O function calls should not be vulnerable to path injection attacks
logger.info(f"Executing command: {' '.join(full_command)}, attempt {attempt + 1}") | ||
|
||
# 使用 subprocess 运行命令行工具 | ||
result = subprocess.run(full_command, capture_output=True, text=True, check=True, timeout=timeout, env=env) |
Check failure
Code scanning / SonarCloud
OS commands should not be vulnerable to command injection attacks
raise HTTPException(status_code=404, detail="Log file not found") | ||
|
||
try: | ||
remove(file_name) |
Check failure
Code scanning / SonarCloud
I/O function calls should not be vulnerable to path injection attacks
部分内置模组对外接口更新
for more information, see https://pre-commit.ci
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
No description provided.