The Samba-Bugzilla – Attachment 5553 Details for
Bug 7057
Buffer overflow when sending a file with long name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Vary the final dir len (creates 3 final dirs) and puts 3 files in those dirs with varying name lengths.
make-chain (text/plain), 765 bytes, created by
Wayne Davison
on 2010-03-26 19:16:46 UTC
(
hide
)
Description:
Vary the final dir len (creates 3 final dirs) and puts 3 files in those dirs with varying name lengths.
Filename:
MIME Type:
Creator:
Wayne Davison
Created:
2010-03-26 19:16:46 UTC
Size:
765 bytes
patch
obsolete
>#!/usr/bin/env perl > >use strict; >use warnings; > >my $chdir_to = shift; >die "Usage: $0 DIRECTORY_TO_USE\n" unless defined $chdir_to; > ># MAXPATHLEN == 4096. 256 components. ># 16 characters per component, including the trailing slash. >for (my $i = 0; $i < 256; $i++) { > chdir $chdir_to or die "chdir failed to $chdir_to: $!"; > > my $component = sprintf("%02x_____________", $i); > mkdir $component, 0755 or die "mkdir failed (i = $i): $!"; > $chdir_to = $component; >} > >my @dirs = ( $chdir_to ); > >foreach (1..2) { > $chdir_to =~ s/_//; > mkdir $chdir_to, 0755; > push @dirs, $chdir_to; >} > >foreach my $dir (@dirs) { > foreach my $file (qw( 1 22 333 )) { > open OUT, '>', "$dir/$file" or die "unable to write $file: $!"; > print OUT "non-empty\n"; > close OUT; > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7057
:
5215
|
5529
|
5530
|
5551
| 5553