Skip to content

TS-2153 : Add -M to traffic_manager options if needed#879

Merged
jpeach merged 1 commit intoapache:masterfrom
strotyl:TS-2153
Aug 23, 2016
Merged

TS-2153 : Add -M to traffic_manager options if needed#879
jpeach merged 1 commit intoapache:masterfrom
strotyl:TS-2153

Conversation

@strotyl
Copy link
Contributor

@strotyl strotyl commented Aug 18, 2016

No description provided.

@jpeach
Copy link
Contributor

jpeach commented Aug 18, 2016

[approve ci]

real_proxy_options.append(proxy_options, strlen(proxy_options));

if (!strstr(proxy_options, "-M")) { // Make sure we're starting the proxy in mgmt mode
real_proxy_options.append(" -M ", strlen(" -M "));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need to append the trailing space.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested without the trailing space and it worked so I removed it.

@atsci
Copy link

atsci commented Aug 18, 2016

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/555/ for details.

@atsci
Copy link

atsci commented Aug 18, 2016

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/451/ for details.

@jpeach
Copy link
Contributor

jpeach commented Aug 18, 2016

[approve ci]

@atsci
Copy link

atsci commented Aug 18, 2016

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/557/ for details.

@atsci
Copy link

atsci commented Aug 18, 2016

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/453/ for details.

@zwoop zwoop added the Manager label Aug 19, 2016
@zwoop zwoop added this to the 7.0.0 milestone Aug 19, 2016

real_proxy_options.append(proxy_options, strlen(proxy_options));

if (!strstr(proxy_options, "-M")) { // Make sure we're starting the proxy in mgmt mode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should really be a #define string to guarantee consistency and then use sizeof(M_OPTION_STRING)-1 in the append call.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@jpeach
Copy link
Contributor

jpeach commented Aug 22, 2016

[approve ci]

@atsci
Copy link

atsci commented Aug 22, 2016

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/579/ for details.

@atsci
Copy link

atsci commented Aug 22, 2016

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/475/ for details.

@zwoop
Copy link
Contributor

zwoop commented Aug 23, 2016

@jpeach we good to land this now?

@jpeach jpeach merged commit 3630765 into apache:master Aug 23, 2016
@strotyl strotyl deleted the TS-2153 branch August 24, 2016 17:23
bneradt added a commit to bneradt/trafficserver that referenced this pull request Jul 12, 2024
…pache#879)

The fragment_document_count is an array of size 3. Our logic for
accessing it was supposed to clamp indexing into it between values
0 through 2, but accidentally allowed indexing outside of that range.
This resulted in an out of bounds index into random memory. This fixes
the logic to properly clamp to the appropriate values.

For reference here's the old logic before our recent Metrics change:
https://github.com/apache/trafficserver/pull/10175/files#diff-6ac65bcc29d9196567a0bbff3c7aa6705ebb7a6041f4a5706b6b475202d4934dL1200

(cherry picked from commit edf70d4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants