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

Issue 561002: Linux sym_upload doesn't work if 'char' is unsigned

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by mattdr
Modified:
11 years, 7 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

getopt() returns (int)(-1) when options are exhausted. sym_upload assigns this
to a char. If char is unsigned then this value becomes 255 and is viewed as an
invalid flag.

Patch Set 1 #

Patch Set 2 : add blank line #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
src/tools/linux/symupload/sym_upload.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
mattdr
11 years, 7 months ago #1
Lei Zhang (chromium)
Drive by lgtm. The getopt(3) man page says getopt() returns an int.
11 years, 7 months ago #2
Ivan Penkov
On 2013/04/17 22:43:01, thestig wrote: > Drive by lgtm. The getopt(3) man page says getopt() ...
11 years, 7 months ago #3
mattdr
On 2013/04/18 00:05:55, Ivan Penkov wrote: > On 2013/04/17 22:43:01, thestig wrote: > > Drive ...
11 years, 7 months ago #4
Ivan Penkov
11 years, 7 months ago #5
No need to check this in.  It was addressed by
https://code.google.com/p/google-breakpad/source/detail?r=1158.

I can do another Breakpad import sometimes next week and I'll ping you when
it's done (I just did one a couple of days ago).

Thanks,
-Ivan


On Tue, Apr 23, 2013 at 12:47 PM, <mattdr@google.com> wrote:

> On 2013/04/18 00:05:55, Ivan Penkov wrote:
>
>> On 2013/04/17 22:43:01, thestig wrote:
>> > Drive by lgtm. The getopt(3) man page says getopt() returns an int.
>>
>
>  LGTM.  Let me know if you need this change imported in google3.
>>
>
> Thanks. Import to google3 would be nice; I also don't have rw access to
> commit to breakpad.
>
> https://breakpad.appspot.com/**561002/<https://breakpad.appspot.com/561002/>
>
Sign in to reply to this message.

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