}
#endif
+ if (strlen(aname) > AFSNAMEMAX) {
+ code = ENAMETOOLONG;
+ goto done;
+ }
+
if (!afs_ENameOK(aname)) {
code = EINVAL;
goto done;
if (code = afs_InitReq(&treq, acred))
goto done2;
+ if (strlen(aname) > AFSNAMEMAX) {
+ code = ENAMETOOLONG;
+ goto done;
+ }
+
if (!afs_ENameOK(aname)) {
code = EINVAL;
goto done;
if (code = afs_InitReq(&treq, acred))
goto done2;
+ if (strlen(aname) > AFSNAMEMAX) {
+ code = ENAMETOOLONG;
+ goto done;
+ }
+
code = afs_VerifyVCache(adp, &treq);
if (code) goto done;
code = EXDEV;
goto done;
}
+ if (strlen(aname) > AFSNAMEMAX) {
+ code = ENAMETOOLONG;
+ goto done;
+ }
code = afs_VerifyVCache(adp, &treq);
if (code) goto done;
#endif
return code;
}
+ if (strlen(aname) > AFSNAMEMAX) {
+#ifdef AFS_OSF_ENV
+ afs_PutVCache(adp, 0);
+ afs_PutVCache(tvc, 0);
+#endif
+ return ENAMETOOLONG;
+ }
tagain:
code = afs_VerifyVCache(adp, &treq);
#ifdef AFS_OSF_ENV
if (code = afs_InitReq(&treq, acred)) return code;
+ if (strlen(aname1) > AFSNAMEMAX || strlen(aname2) > AFSNAMEMAX) {
+ code = ENAMETOOLONG;
+ goto done;
+ }
+
/* verify the latest versions of the stat cache entries */
tagain:
code = afs_VerifyVCache(aodp, &treq);
afs_Trace2(afs_iclSetp, CM_TRACE_SYMLINK, ICL_TYPE_POINTER, adp,
ICL_TYPE_STRING, aname);
+ if (strlen(aname) > AFSNAMEMAX || strlen(atargetName) > AFSPATHMAX) {
+ code = ENAMETOOLONG;
+ goto done2;
+ }
+
if (afs_IsDynroot(adp)) {
code = afs_DynrootVOPSymlink(adp, acred, aname, atargetName);
goto done2;