Skip to content

test: Prevent access past the end of hosts array.#2677

Merged
alyssawilk merged 1 commit intoenvoyproxy:masterfrom
jrajahalme:test-utility-off-by-one-fix
Feb 27, 2018
Merged

test: Prevent access past the end of hosts array.#2677
alyssawilk merged 1 commit intoenvoyproxy:masterfrom
jrajahalme:test-utility-off-by-one-fix

Conversation

@jrajahalme
Copy link
Copy Markdown
Contributor

The assert test for array bounds is off by one. For a size N, hosts[N]
is past the end of the array.

Signed-off-by: Jarno Rajahalme jarno@covalent.io
Risk Level: Low

The assert test for array bounds is off by one. For a size N, hosts[N]
is past the end of the array.

Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
@alyssawilk alyssawilk merged commit 5292095 into envoyproxy:master Feb 27, 2018
jpsim pushed a commit that referenced this pull request Nov 28, 2022
…ts (#2677)

Instead of requiring adding the code addLogLevel() to an integration test to get finer-grained logging, now we can specify the log level on the command line via --test_arg="-l LOG_LEVEL", just like for the Envoy integration tests. For example:

bazel test --test_arg="-l trace" //test/common/integration:rtds_integration_test

Limitations:

This flag only applies to C++ integration tests (not unit tests or other language tests).

Signed-off-by: Ali Beyad <abeyad@google.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
…ts (#2677)

Instead of requiring adding the code addLogLevel() to an integration test to get finer-grained logging, now we can specify the log level on the command line via --test_arg="-l LOG_LEVEL", just like for the Envoy integration tests. For example:

bazel test --test_arg="-l trace" //test/common/integration:rtds_integration_test

Limitations:

This flag only applies to C++ integration tests (not unit tests or other language tests).

Signed-off-by: Ali Beyad <abeyad@google.com>
Signed-off-by: JP Simard <jp@jpsim.com>
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