raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=32e51899522b63f395209180cb6353890abd52bd

commit 32e51899522b63f395209180cb6353890abd52bd
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Fri Aug 22 18:09:12 2014 +0900

    embryo_cc - check fseeek return and complain
    
    fixes CID 996788
---
 src/bin/embryo/embryo_cc_sc6.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/embryo/embryo_cc_sc6.c b/src/bin/embryo/embryo_cc_sc6.c
index b7cda64..0ae8c4e 100644
--- a/src/bin/embryo/embryo_cc_sc6.c
+++ b/src/bin/embryo/embryo_cc_sc6.c
@@ -827,7 +827,8 @@ assemble(FILE * fout, FILE * fin)
             align32(&func.address);
             align32(&func.nameofs);
 #endif
-            fseek(fout, publics + count * sizeof(FUNCSTUB), SEEK_SET);
+            if (fseek(fout, publics + count * sizeof(FUNCSTUB), SEEK_SET) < 0)
+               fprintf(stderr, "Error seeking\n");
             sc_writebin(fout, &func, sizeof func);
             fseek(fout, nameofs, SEEK_SET);
             sc_writebin(fout, sym->name, strlen(sym->name) + 1);

-- 


Reply via email to