ASF Bugzilla – Attachment 34697 Details for
Bug 60670
Fails to create document nodes in MSI files larger than 2 GB
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Stand-alone program to expose bug
Main.java (text/x-java), 736 bytes, created by
Marcus Lundblad
on 2017-01-31 14:59:27 UTC
(
hide
)
Description:
Stand-alone program to expose bug
Filename:
MIME Type:
Creator:
Marcus Lundblad
Created:
2017-01-31 14:59:27 UTC
Size:
736 bytes
patch
obsolete
>/* > * To change this license header, choose License Headers in Project Properties. > * To change this template file, choose Tools | Templates > * and open the template in the editor. > */ >package com.mycompany.poi.overflow; > >import java.io.ByteArrayInputStream; >import java.io.File; >import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; > >/** > * > * @author marcus > */ >public class Main { > public static void main(String args[]) throws Exception { > File infile = new File(args[0]); > > try (NPOIFSFileSystem fs = new NPOIFSFileSystem(infile, false)) { > byte data[] = new byte[10]; > fs.createDocument(new ByteArrayInputStream(data), "Test"); > fs.writeFilesystem(); > } > } >}
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 60670
: 34697