Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1459065 Details for
Bug 1601146
ntfsclone fails with: ntfsclone: malloc.c:2385: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Avoid malloc() of zero bytes
no-zero-malloc.patch (text/plain), 844 bytes, created by
Jean-Pierre André
on 2018-07-16 08:06:39 UTC
(
hide
)
Description:
Avoid malloc() of zero bytes
Filename:
MIME Type:
Creator:
Jean-Pierre André
Created:
2018-07-16 08:06:39 UTC
Size:
844 bytes
patch
obsolete
>--- ntfsprogs/ntfsclone.c.ref 2018-05-16 18:46:47.114964000 +0200 >+++ ntfsprogs/ntfsclone.c 2018-07-16 09:47:13.316433900 +0200 >@@ -778,7 +778,7 @@ > backup_bootsector = (lcn + 1)*csize >= full_device_size; > if (backup_bootsector) { > csize = full_device_size - lcn*csize; >- if (csize < 0) { >+ if (csize <= 0) { > err_exit("Corrupted input, copy aborted"); > } > } >@@ -2044,8 +2044,10 @@ > compare_bitmaps(&lcn_bitmap, TRUE); > walk->image->current_lcn = 0; > } >- if (opt.metadata_image ? wipe : !wipe) { >- /* also get the backup bootsector */ >+ if ((opt.metadata_image ? wipe : !wipe) >+ && (full_device_size >+ > (u64)(vol->nr_clusters*vol->sector_size))) { >+ /* also get the backup bootsector if present */ > nr_clusters = vol->nr_clusters; > lseek_to_cluster(nr_clusters); > if (opt.metadata_image && wipe)
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1601146
:
1459065
|
1459151