-
Notifications
You must be signed in to change notification settings - Fork 95
Replace sprintf usage with snprintf or asprintf #459
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d057ce8
Replace sprintf usage with snprintf or asprintf
pnoltes 32e3000
Refactor pubsubProtocol_encodeMetadata for improved handling and remo…
pnoltes b43e184
Add extra content size output argument for encoding metadata in the p…
pnoltes 824d63c
Improve existing buffer handling for the pubsub protocol encoding of …
pnoltes 2b720bd
Replaces use of snprintf for asprint in deployment_admin.c
pnoltes c809a00
Add check to asprintf return
pnoltes 76aa019
Add __attribute__((format)) usage and add -Wformat=2 compile flag
pnoltes 7951756
Improve and add some missing handling of snprintf return values
pnoltes 32b6061
Add missing __attribute__((format(printf))) to celix log utils.
pnoltes b37a1e2
Merge remote-tracking branch 'origin/master' into feature/remove_spri…
pnoltes dc6f2c7
Add CMAKE_DL_LIBS libaries to celix_pswp_common_tests
pnoltes b74b76f
Remove usage of dlerror in unit test
pnoltes 5dca466
Configure explicit conversion for protocol test
pnoltes 2f75f7e
Configure malloc return null test behind a compile option
pnoltes 5929594
Merge remote-tracking branch 'origin/master' into feature/remove_spri…
pnoltes e772447
Add __attribute__((format)) to BundleContext.h
pnoltes 61940ed
Replaced some usage of %lu for size_t to %zu
pnoltes 4441d02
Fix C++ wrong log methods usage concerning formatting
pnoltes cb38595
Update bundles/pubsub/pubsub_spi/include/pubsub_protocol.h
PengZheng 80da770
Update bundles/pubsub/pubsub_admin_tcp/src/pubsub_tcp_handler.c
PengZheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Let's merge the current malloc mocking. I'll make another PR proposing a general error injector playing nicely with address sanitizers.