Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sbin/disklabel



In article <tkr1u9a1ayw.fsf%sigxcpu.sm.sony.co.jp@localhost>,
 <tsugutomo.enami%jp.sony.com@localhost> wrote:
>> Modified Files:
>>         src/sbin/disklabel: main.c
>> 
>> Log Message:
>> CVE 1020933: Prevent integer overflow by using wider type
>> 
>> To generate a diff of this commit:
>> cvs rdiff -u -r1.33 -r1.34 src/sbin/disklabel/main.c
>
>Since the variable `offset' in find_label() is used to express an offset
>within the array bootarea[], we don't need to change its type to off_t,
>do we?
>
>I guess it is enough to warn when the value of LABEL_OFFSET doesn't fit
>the bootarea[] (since the value can be altered by setting environment
>variable LABELSECOTR and/or LABELOFFSET).
>
>enami.
>

Are you worried about efficiency here? Yes, you can fix it differently 
by checking if LABEL_OFFSET fits.
 
christos



Home | Main Index | Thread Index | Old Index