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

ct.c tuneups from NCBI as of May 2024 #561

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

Conversation

ucko
Copy link
Contributor

@ucko ucko commented May 30, 2024

This PR contains two tuneups to ct.c from #555 that git-deps flagged as interdependent, though it looks like that may have been a false positive.

ucko added 2 commits May 29, 2024 13:07
Explicitly build cmd->iodesc->name and update ...->namelen along the
way rather than calling sprintf and strlen (which can be slow).

Signed-off-by: Aaron M. Ucko <[email protected]>
Report (anticipated) truncation when given data for a variable-width
type whose maximum width is less than the supplied data length.  (The
actual truncation will occur in libtds code that cannot readily
complain about it.)  To that end, copy error code 36's description
from cs.c.

Signed-off-by: Aaron M. Ucko <[email protected]>
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