Now i'm really attaching the file...
- It crashes even if compiled with no optimizations (-O)

If this exact file does not crash I think a larger file should be tested. As 
I said - I tested it using the win32 code (which should be libpcap 0.5 
code), but different architectures/compilers can make this bug happen at 
different inputs.


>From: [EMAIL PROTECTED]
>To: "Giora Engel" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], 
>[EMAIL PROTECTED]
>Subject: Re: a strange bug that I found in pcap compilation
>Date: Sat, 21 Jul 2001 21:54:01 +0900
>
>       please use the mailing list.
>
> >Hi,
> >I saw that you've contributed some code to libpcap.
> >I noticed a strange bug:
> >when compiling a long filter file like the one attached, libpcap crashes.
>
>       there was no attachment.  could you pls resend?
>
> >I used purify to find that out-of-band data are written in conver_code_r
> >(after it was calling itself recuresively 5-6 times)
> >The lines are writing to non-allocated memory are
> >dst->code = (u_short)src->s.code;
> >dst->k = src->s.k;
>
>       does the situation change if you don't run optimizer (tcpdump -O)?
>       (i guess so, of course)
>
>itojun


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
ip and tcp and (port 0 or port 1 or port 2 or port 3 or port 4 or port 5 or 
port 6 or port 7 or port 8 or port 9 or port 10 or port 11 or port 12 or 
port 13 or port 14 or port 15 or port 16 or port 17 or port 18 or port 163 
or port 164 or port 165 or port 166 or port 167 or port 168 or port 193 or 
port 194 or port 195 or port 196 or port 197 or port 198 or port 199 or port 
200 or port 201 or port 202 or port 203 or port 204 or port 205 or port 206 
or port 207 or port 208 or port 209 or port 210 or port 211 or port 212 or 
port 213 or port 214 or port 215 or port 216 or port 217 or port 218 or port 
219 or port 220 or port 221 or port 222 or port 223 or port 224 or port 225 
or port 226 or port 227 or port 228 or port 229 or port 230 or port 231 or 
port 232 or port 233 or port 234 or port 235 or port 236 or port 237 or port 
238 or port 239 or port 240 or port 241 or port 242 or port 243 or port 244 
or port 245 or port 246 or port 247 or port 248 or port 249 or port 250 or 
port 251 or port 252 or port 253 or port 254 or port 255 or port 256 or port 
257 or port 258 or port 259 or port 260 or port 261 or port 262 or port 263 
or port 264 or port 265 or port 266 or port 267 or port 268 or port 269 or 
port 270 or port 271 or port 272 or port 273 or port 274 or port 275 or port 
276 or port 277 or port 278 or port 279 or port 280 or port 281 or port 282 
or port 283 or port 284 or port 285 or port 286 or port 287 or port 288 or 
port 289 or port 290 or port 291 or port 292 or port 293 or port 294 or port 
295 or port 296 or port 297 or port 298 or port 299 or port 300)

Reply via email to