Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(19461)

Issue 607002: Fix a clang warning.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by thakis
Modified:
10 years, 10 months ago
Reviewers:
Mark Mentovai
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/src/
Visibility:
Public.

Description

Fix a clang warning.

Since explanatoryDialogText returns something that migth be user input, this
looks like a good change anyhow.

../../breakpad/src/client/mac/sender/crash_report_sender.m:269:38:
error: format string is not a string literal (potentially insecure)
    [-Werror,-Wformat-security]
                                     [self explanatoryDialogText],
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M client/mac/sender/crash_report_sender.m View 1 chunk +7 lines, -5 lines 2 comments Download

Messages

Total messages: 6
thakis
If this lgtyou, please land.
10 years, 10 months ago #1
Mark Mentovai
https://breakpad.appspot.com/607002/diff/1/client/mac/sender/crash_report_sender.m File client/mac/sender/crash_report_sender.m (right): https://breakpad.appspot.com/607002/diff/1/client/mac/sender/crash_report_sender.m#newcode273 client/mac/sender/crash_report_sender.m:273: [self explanatoryDialogText], I think this argument and the |nil| ...
10 years, 10 months ago #2
thakis
Thanks! https://breakpad.appspot.com/607002/diff/1/client/mac/sender/crash_report_sender.m File client/mac/sender/crash_report_sender.m (right): https://breakpad.appspot.com/607002/diff/1/client/mac/sender/crash_report_sender.m#newcode273 client/mac/sender/crash_report_sender.m:273: [self explanatoryDialogText], On 2013/06/27 20:37:31, Mark Mentovai wrote: ...
10 years, 10 months ago #3
Mark Mentovai
Checked in r1195 (see https://code.google.com/p/google-breakpad/source/detail?r=1195)
10 years, 10 months ago #4
thakis
On Thu, Jun 27, 2013 at 1:56 PM, <mark@chromium.org> wrote: > Checked in r1195 (see ...
10 years, 10 months ago #5
thakis
10 years, 10 months ago #6
On Thu, Jun 27, 2013 at 2:48 PM, Nico Weber <thakis@chromium.org> wrote:

> On Thu, Jun 27, 2013 at 1:56 PM, <mark@chromium.org> wrote:
>
>> Checked in r1195 (see
>>
https://code.google.com/p/**google-breakpad/source/detail?**r=1195<https://co...>
>> )
>>
>
> Thanks! While there, can you also fix
> https://breakpad.appspot.com/36001/#msg15 ?
>

(warning text for this is:

../../breakpad/src/processor/tokenize.cc:65:7: error: logical not is only
applied to the left hand side of this comparison
[-Werror,-Wlogical-not-parentheses]
  if (!remaining > 0) {
      ^          ~
../../breakpad/src/processor/tokenize.cc:65:7: note: add parentheses after
the '!' to evaluate the comparison first
  if (!remaining > 0) {
      ^
       (            )
../../breakpad/src/processor/tokenize.cc:65:7: note: add parentheses around
left hand side expression to silence this warning
  if (!remaining > 0) {
      ^
      (         )

)


>
>
>>
>> https://breakpad.appspot.com/**607002/<https://breakpad.appspot.com/607002/>
>>
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted