Skip to content

Conversation

@dschervov
Copy link

What?

Delete redundant code in "ucs_read_file_vararg" function.

Why?

There is no point to check if "read_bytes" is less than "max" because we are calling "read" with buffer size "max - 1".

How?

Thereforce we can delete redundant check and always terminate the buffer (string) in "read_bytes" position.

@dschervov
Copy link
Author

I find this because of Coverity check fail on my initial PR: #10690

@brminich
Copy link
Contributor

@dschervov, thx for the patch, do you have signed CLA?

@dschervov
Copy link
Author

@dschervov, thx for the patch, do you have signed CLA?

Yes! Send it (18th May) from: dschervov1@yandex.ru, to: admin@ucfconsortium.org

iyastreb
iyastreb previously approved these changes May 19, 2025
@dschervov
Copy link
Author

dschervov commented May 30, 2025

@iyastreb I am grateful for the review and your approve! Probably, we need to restart "UCX PR (Tests BlueField on worker 1) since it is unreachable:
We stopped hearing from agent swx-rain04-bf1-01

@iyastreb
Copy link
Contributor

iyastreb commented Jun 2, 2025

@iyastreb I am grateful for the review and your approve! Probably, we need to restart "UCX PR (Tests BlueField on worker 1) since it is unreachable: We stopped hearing from agent swx-rain04-bf1-01

Can you please resolve conflict?

@dschervov
Copy link
Author

@iyastreb I am grateful for the review and your approve! Probably, we need to restart "UCX PR (Tests BlueField on worker 1) since it is unreachable: We stopped hearing from agent swx-rain04-bf1-01

Can you please resolve conflict?

Yes of cource! Grateful for your help! My bad : - ( Did not see the conflict...

@dschervov
Copy link
Author

It again stuck... Stop hearing from workers... And some error that there are no memory to allocate...

brminich
brminich previously approved these changes Jun 3, 2025
@brminich
Copy link
Contributor

brminich commented Jun 3, 2025

@dschervov maybe you can rebase and force-push, then it would trigger CI restart

@dschervov
Copy link
Author

@dschervov maybe you can rebase and force-push, then it would trigger CI restart

Yes, great idea!!! I do just like that if i encounter this problem again! Thank you for your help!

@brminich
Copy link
Contributor

brminich commented Jun 3, 2025

i meant, can you pls squash commits to have a single commit with just your change?

@dschervov
Copy link
Author

I apologize! This mistake will not happen again! I create new clean PR: #10713

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.

3 participants