Bug 28890

Summary: [patch] merge.c compares int i against size_t size
Product: Base System Reporter: matthias.andree <matthias.andree>
Component: kernAssignee: Brian Somers <brian>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description matthias.andree 2001-07-11 10:50:00 UTC
/usr/src/lib/libc/stdlib/merge.c compares i against size at lines 169
and 182.

i is of type int and size of type size_t, their signedness doesn't
match.

Fix: Apply this patch:
How-To-Repeat: run merge.c through gcc with -W -Wall
Comment 1 Brian Somers freebsd_committer freebsd_triage 2005-01-12 03:29:03 UTC
Responsible Changed
From-To: freebsd-bugs->brian

I'll commit this
Comment 2 Brian Somers freebsd_committer freebsd_triage 2005-01-12 03:40:01 UTC
State Changed
From-To: open->patched

Applied to -current.  I'll MFC in 7 days unless there are objections
Comment 3 Brian Somers freebsd_committer freebsd_triage 2005-01-24 13:58:29 UTC
State Changed
From-To: patched->closed

Committed to RELENG_5