diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-11-11 16:21:52 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-11-11 16:21:52 +0000 |
commit | 515008006b2f16f54c1d5d0a0b9e69b95ff69ef1 (patch) | |
tree | 2f0e50700f09edb3a8423b159c701a9f027af1c8 | |
parent | 468e1466ec8d91ae05e30e48dc376798c69391b3 (diff) |
fix a buffer overflow found by parfait
ok millert@
-rw-r--r-- | usr.bin/file/apprentice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/file/apprentice.c b/usr.bin/file/apprentice.c index 1e825b6c2a5..42d8ca2514d 100644 --- a/usr.bin/file/apprentice.c +++ b/usr.bin/file/apprentice.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apprentice.c,v 1.28 2009/10/27 23:59:37 deraadt Exp $ */ +/* $OpenBSD: apprentice.c,v 1.29 2009/11/11 16:21:51 jsg Exp $ */ /* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; @@ -2084,7 +2084,7 @@ swap4(uint32_t sv) private uint64_t swap8(uint64_t sv) { - uint32_t rv; + uint64_t rv; uint8_t *s = (uint8_t *)(void *)&sv; uint8_t *d = (uint8_t *)(void *)&rv; #if 0 |