Skip to content
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

move the repository stage into the repodata file #575

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Duncaen
Copy link
Member

@Duncaen Duncaen commented Oct 28, 2023

By combining repodata and stage data into a single file its easier to
use remote stagedata when enabled. This also avoids having to come up
with a new mechanism to fetch -stagedata and having to keep -repodata
and -stagedata in sync.

}

for (int i = args; i < argc; i++) {
r = index_add_pkg(xhp, index, stage, argv[i], force);

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This argument to a file access function is derived from
user input (a command-line argument)
and then passed to index_add_pkg(file), which calls xbps_file_sha256(file), which calls xbps_file_sha256_raw(file), which calls open(__file).
return -ENAMETOOLONG;
}

fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC, 0660);

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This argument to a file access function is derived from
user input (a command-line argument)
and then passed to open(__file).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant