Author: pfg
Date: Wed Apr 29 15:33:55 2015
New Revision: 282225
URL: https://svnweb.freebsd.org/changeset/base/282225

Log:
  MFC   r281857:
  _pthread_cleanup_push: fix allocator sizeof operand mismatch
  
  Same fix appears to be in DragonFly's libthread_xu.
  
  Found by:     Clang Static Analyzer

Modified:
  stable/9/lib/libthr/thread/thr_clean.c
Directory Properties:
  stable/9/lib/libthr/   (props changed)

Modified: stable/9/lib/libthr/thread/thr_clean.c
==============================================================================
--- stable/9/lib/libthr/thread/thr_clean.c      Wed Apr 29 15:33:07 2015        
(r282224)
+++ stable/9/lib/libthr/thread/thr_clean.c      Wed Apr 29 15:33:55 2015        
(r282225)
@@ -84,7 +84,7 @@ _pthread_cleanup_push(void (*routine) (v
        curthread->unwind_disabled = 1;
 #endif
        if ((newbuf = (struct pthread_cleanup *)
-           malloc(sizeof(struct _pthread_cleanup_info))) != NULL) {
+           malloc(sizeof(struct pthread_cleanup))) != NULL) {
                newbuf->routine = routine;
                newbuf->routine_arg = arg;
                newbuf->onheap = 1;
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to