Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pike
pike
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 109
    • Issues 109
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #6601

Closed
Open
Created Nov 12, 2012 by Peter Bortas@zinoOwner

JPEG module assumes markers are unique

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6601

Reported by Jonas Wallden jonasw@roxen.com

API calls involving JPEG markers assume that a marker can only occur once per image. This assumption is incorrect and leads to random hiding of valuable data, e.g. XMP metadata which is tagged with the same APP1 tag as Exif.

A slightly patched image_jpeg.c logs the following marker sequence for a sample image:

> Image.JPEG.decode_header(Stdio.read_bytes("/home/jonasw/Desktop/xmp-ok.jpg"));
MARKER: 226
MARKER: 254
MARKER: 254
MARKER: 237
MARKER: 225
MARKER: 225
MARKER: 238
Assignee
Assign to
Pike 8.0
Milestone
Pike 8.0
Assign milestone
Time tracking
None
Due date
None