Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 18 months ago

Closed 13 months ago

Last modified 13 months ago

#11187 closed Patch - Bug Fix (fixed)

Fix the check for a failed call to mmap

Reported by: mythtv@… Owned by: Paul Harrison <pharrison@…>
Priority: minor Milestone: 0.27
Component: Plugin - MythZoneminder Version: 0.26-fixes
Severity: low Keywords:
Cc: Ticket locked: no

Description

The attached patch uses the correct error return value from mmap(), it should be MAP_FAILED not NULL.

Also adds some debugging to make it clear why we failed to open the mmap file.

Attachments (1)

0001-mythzmserver-Add-a-proper-check-for-a-failed-call-to.patch (1.8 KB) - added by anonymous 18 months ago.

Download all attachments as: .zip

Change History (3)

Changed 18 months ago by anonymous

comment:1 Changed 13 months ago by Paul Harrison <pharrison@…>

  • Owner set to Paul Harrison <pharrison@…>
  • Resolution set to fixed
  • Status changed from new to closed

In d2127813712612699a490a50476166ce062f166e/mythtv:

mythzmserver: Add a proper check for a failed call to mmap()

Should be checking for MAP_FAILED not NULL. Also add some additional debugging
showing why we failed to open the mmap file. Fixes #11187.

(cherry picked from commit 52b277397431dd88a337e46a7d64fea89c8037c0)

Signed-off-by: Paul Harrison <pharrison@…>

comment:2 Changed 13 months ago by wagnerrp

  • Milestone set to 0.27

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.