Skip to content

chore: clang format based on coding conventions - #6

Merged
poiana merged 1 commit into
masterfrom
chore/clang-format
Feb 17, 2021
Merged

poiana merged 1 commit into
masterfrom
chore/clang-format

Conversation

@fntlnz

@fntlnz fntlnz commented Feb 17, 2021 •

Copy link
Copy Markdown
Contributor

Co-Authored-By: Leonardo Di Donato leodidonato@gmail.com
Signed-off-by: Lorenzo Fontana lo@linux.com

What type of PR is this?

/kind cleanup

Any specific area of the project related to this PR?

/area build

What this PR does / why we need it:

Clang format based out to our coding conventions.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
@poiana

poiana commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

@fntlnz: The label(s) area/build cannot be applied, because the repository doesn't have them

Details

In response to this:

Co-Authored-By: Leonardo Di Donato leodidonato@gmail.com
Signed-off-by: Lorenzo Fontana lo@linux.com

What type of PR is this?

/kind cleanup

Any specific area of the project related to this PR?

/area build

What this PR does / why we need it:

Clang format based out to our coding conventions.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@poiana

poiana commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: e52600eba0bbfa57e47b2f2e33841d88fd8c478b

@poiana

poiana commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leodido, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana
poiana merged commit 477a93e into master Feb 17, 2021
@poiana
poiana deleted the chore/clang-format branch February 17, 2021 15:11
hhoffstaette added a commit to hhoffstaette/falcosecurity-libs that referenced this pull request Aug 3, 2025
glibc-2.42 added __inet_ntop_chk fortification, which started to fail:

  *** buffer overflow detected ***: terminated
  Program received signal SIGABRT, Aborted.
  0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6
  (gdb) bt
  #0  0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6
  falcosecurity#1  0x00007ffff6242572 in raise () from /lib64/libc.so.6
  falcosecurity#2  0x00007ffff6229f3b in abort () from /lib64/libc.so.6
  falcosecurity#3  0x00007ffff622b148 in __libc_message_impl.cold () from /lib64/libc.so.6
  falcosecurity#4  0x00007ffff6327337 in __fortify_fail () from /lib64/libc.so.6
  falcosecurity#5  0x00007ffff6326c92 in __chk_fail () from /lib64/libc.so.6
  falcosecurity#6  0x00007ffff6327a62 in __inet_ntop_chk () from /lib64/libc.so.6
  falcosecurity#7  0x000055555569da3d in inet_ntop (__af=10, __src=0x555555ee0800, __dst=0x7fffffff4f90 "\260P\377\377\377\177", __dst_size=100) at /usr/include/bits/inet-fortified.h:36
  falcosecurity#8  ipv6tuple_to_string[abi:cxx11](ipv6tuple*, bool) (tuple=0x555555ee0800, resolve=false) at /tmp/portage/dev-debug/sysdig-0.40.1/work/libs-0.20.0/userspace/libsinsp/utils.c

Use INET6_ADDRSTRLEN as destination buffer size.

Fixes: falcosecurity#2573
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
hhoffstaette added a commit to hhoffstaette/falcosecurity-libs that referenced this pull request Aug 4, 2025
glibc-2.42 added __inet_ntop_chk fortification, which started to fail:

  *** buffer overflow detected ***: terminated
  Program received signal SIGABRT, Aborted.
  0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6
  (gdb) bt
  #0  0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6
  falcosecurity#1  0x00007ffff6242572 in raise () from /lib64/libc.so.6
  falcosecurity#2  0x00007ffff6229f3b in abort () from /lib64/libc.so.6
  falcosecurity#3  0x00007ffff622b148 in __libc_message_impl.cold () from /lib64/libc.so.6
  falcosecurity#4  0x00007ffff6327337 in __fortify_fail () from /lib64/libc.so.6
  falcosecurity#5  0x00007ffff6326c92 in __chk_fail () from /lib64/libc.so.6
  falcosecurity#6  0x00007ffff6327a62 in __inet_ntop_chk () from /lib64/libc.so.6
  falcosecurity#7  0x000055555569da3d in inet_ntop (__af=10, __src=0x555555ee0800, __dst=0x7fffffff4f90 "\260P\377\377\377\177", __dst_size=100) at /usr/include/bits/inet-fortified.h:36
  falcosecurity#8  ipv6tuple_to_string[abi:cxx11](ipv6tuple*, bool) (tuple=0x555555ee0800, resolve=false) at /tmp/portage/dev-debug/sysdig-0.40.1/work/libs-0.20.0/userspace/libsinsp/utils.c

Use INET6_ADDRSTRLEN as destination buffer size.

Fixes: falcosecurity#2573
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
poiana pushed a commit that referenced this pull request Aug 4, 2025
glibc-2.42 added __inet_ntop_chk fortification, which started to fail:

  *** buffer overflow detected ***: terminated
  Program received signal SIGABRT, Aborted.
  0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6
  (gdb) bt
  #0  0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6
  #1  0x00007ffff6242572 in raise () from /lib64/libc.so.6
  #2  0x00007ffff6229f3b in abort () from /lib64/libc.so.6
  #3  0x00007ffff622b148 in __libc_message_impl.cold () from /lib64/libc.so.6
  #4  0x00007ffff6327337 in __fortify_fail () from /lib64/libc.so.6
  #5  0x00007ffff6326c92 in __chk_fail () from /lib64/libc.so.6
  #6  0x00007ffff6327a62 in __inet_ntop_chk () from /lib64/libc.so.6
  #7  0x000055555569da3d in inet_ntop (__af=10, __src=0x555555ee0800, __dst=0x7fffffff4f90 "\260P\377\377\377\177", __dst_size=100) at /usr/include/bits/inet-fortified.h:36
  #8  ipv6tuple_to_string[abi:cxx11](ipv6tuple*, bool) (tuple=0x555555ee0800, resolve=false) at /tmp/portage/dev-debug/sysdig-0.40.1/work/libs-0.20.0/userspace/libsinsp/utils.c

Use INET6_ADDRSTRLEN as destination buffer size.

Fixes: #2573
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants