Bug 4466 - librpc/ndr/ ndr_sec_helper.c & sid.c: unsigned integer is being compared to zero
Summary: librpc/ndr/ ndr_sec_helper.c & sid.c: unsigned integer is being compared to zero
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.25
Hardware: SGI IRIX
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-24 12:46 UTC by Jason Mader (mail bounces back)
Modified: 2007-03-24 13:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader (mail bounces back) 2007-03-24 12:46:27 UTC
cc-1183 c99: WARNING File = librpc/ndr/ndr_sec_helper.c, Line = 606
  An unsigned integer is being compared to zero.

                if (r->num_aces < 0 || r->num_aces > 1000) {
                                ^

cc-1183 c99: WARNING File = librpc/ndr/sid.c, Line = 214
  An unsigned integer is being compared to zero.

                if (r->sd_size < 0 || r->sd_size > 0x40000) {
                               ^
Comment 1 Volker Lendecke 2007-03-24 13:16:47 UTC
Fixed with r21960 -- thanks

Volker