lp:~colin-king/ecryptfs/coverity-fixes

Created by Colin Ian King and last modified
Get this branch:
bzr branch lp:~colin-king/ecryptfs/coverity-fixes
Only Colin Ian King can upload to this branch. If you are Colin Ian King please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Colin Ian King
Project:
eCryptfs
Status:
Merged

Recent revisions

794. By Colin Ian King

* don't use strtok to strip off trailing newline
  - Coverity Scan complains that strtok will return a pointer that is
    different to that of mnt which will cause issues when it is free'd. In
    fact, strtok first time around always returns mnt in this case. Anyhow,
    since strtok is a little opaque I reworked it and Coverity is now happy.

793. By Colin Ian King

* src/key_mod/ecryptfs_key_mod_passphrase.c
  move file_head allocation to after the passphrase handling so that
  we can avoid messy free'ing of file_head if things go wrong. This change
  fixes a memory leak on file_head.

792. By Colin Ian King

* src/pam_ecryptfs/pam_ecryptfs.c
  - no need to check for error return on geteuid and getegid as these
    never fail

791. By Colin Ian King

* src/libecryptfs/main.c
  - check for failed shmget before attempting shmat

790. By Colin Ian King

* src/libecryptfs/decision_graph.c
  - free param_vals on error handling exits

789. By Colin Ian King

* src/utils/mount.ecryptfs.c
  - explicitly ignore mkdir() return

788. By Colin Ian King

* src/libecryptfs/cmd_ln_parser.c
  - ensure data is null terminated

787. By Colin Ian King

* src/libecryptfs/cmd_ln_parser.c
  fix memory leak on name, the loop is doing multiple mallocs but not
  freeing previos allocations

786. By Colin Ian King

* src/pam_ecryptfs/pam_ecryptfs.c:
  - free auth_tok_sig

785. By Colin Ian King

* src/pam_ecryptfs/pam_ecryptfs.c
  do not close a negative file descriptor if an open error occurs

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:ecryptfs
This branch contains Public information 
Everyone can see this information.

Subscribers